ionic-team / ionic-team/capacitor-plugins
Feature request to add custom headers in capacitor/browser
- 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
Assessment
This issue has not been assessed yet.