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

feat: Send DNT and GPC headers for all requests #225

Open
2 of 3 tasks
peacememories opened this issue Nov 4, 2024 · 2 comments
Open
2 of 3 tasks

feat: Send DNT and GPC headers for all requests #225

peacememories opened this issue Nov 4, 2024 · 2 comments

Comments

@peacememories
Copy link

Current problem

We would like to send Do Not Track or Global Privacy Control headers with every request the in-app browser makes. We want to do this to comply with the choices users make through Apples App Tracking Transparency API.

Preferred solution

Allow injecting headers in the url-change or another appropriate event handler.

Alternative options

Add an option to the open call that enables DNT and GPC for all requests made by the browser session.

Additional context

No response

Before submitting

Fastest way to get this feature added

@WcaleNieWolny
Copy link
Contributor

You could attempt to use this proxy feature.

You also might attempt to implement a custom service worker. I would not recommend using this proxy to proxy ALL of your requests, but that is up to you.

For you specific case, I would recommend using this proxy fn to serve a service worker, then register it via executeScript OR preLoadScript

@WcaleNieWolny
Copy link
Contributor

I guess you would have to figure out how to use this proxy on iOS and not just Android.

@WcaleNieWolny WcaleNieWolny reopened this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants