Feature request to add custom headers in capacitor/browser #1987
Labels
platform: android
platform: ios
plugin: browser
type: feature request
A new feature, enhancement, or improvement
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
The text was updated successfully, but these errors were encountered: