Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request to add custom headers in capacitor/browser

Open
#1,987 2 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
android, ios
Domain
mobile

Research direction

Start at the capacitor/browser plugin entry points for the iOS and Android implementations and review how each platform opens the browser. Check the SafariViewController constraint described in the issue and compare the platform capabilities for passing custom headers. Done means documenting a feasible supported approach or the platform limitation and alternative.

Written by the indexing model from the issue text.

Description

platform: android platform: ios plugin: browser type: feature request

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
Dominant language
Java
Stars
682
Forks
689
Avg merge
5d 11h
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ionic-team/capacitor-plugins

All issues in ionic-team/capacitor-plugins

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.