Skip to content

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

Open
@AUK4GIT

Description

@AUK4GIT

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions