ionic-team / ionic-team/capacitor-plugins

Feature request to add custom headers in capacitor/browser

Open
#1,987 2 comments 9 reactions 0 assignees View on GitHub
platform: android platform: ios plugin: browser type: feature request
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

## Feature Request

### Plugin

@capacitor/browser

### Description

Feature to add custom headers.

For implementing TLS fingerprinting part of the Authentication workflow, in the mobile apps, it is required to send certain device specific details to the server using custom headers.

We can't reply solely on the useragent as the useragent is coming different from the App and capacitor-browser when tested on Pixel device.

Useragent App:- '**Mozilla/5.0 (Linux; Android 12; Pixel 3a Build/SP2A.220505.008; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/120.0.6099.144 Mobile Safari/537.36**'
Useragent capacitor-browser:- '**Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36**'

### Platform(s)

iOS and Android

### Preferred Solution

Enable adding custom headers. Ofcourse, it is not feasible in iOS because of SafariViewController
Point me to a different approach or a library that works with capacitor browser supports fingerprinting.

### Alternatives

### Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.