Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request to add custom headers in capacitor/browser #1987

Open
AUK4GIT opened this issue Jan 11, 2024 · 0 comments
Open

Feature request to add custom headers in capacitor/browser #1987

AUK4GIT opened this issue Jan 11, 2024 · 0 comments

Comments

@AUK4GIT
Copy link

AUK4GIT commented Jan 11, 2024

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

@ionitron-bot ionitron-bot bot added the triage label Jan 11, 2024
@jcesarmobile jcesarmobile added type: feature request A new feature, enhancement, or improvement plugin: browser and removed platform: ios labels Jan 11, 2024
@AUK4GIT AUK4GIT changed the title Feature request to add customer headers in capacitor/browser Feature request to add custome headers in capacitor/browser Jan 16, 2024
@AUK4GIT AUK4GIT changed the title Feature request to add custome headers in capacitor/browser Feature request to add custom headers in capacitor/browser Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants