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

Add Global Privacy Control (GPC) to OkHttp #6683

Closed
SebastianZimmeck opened this issue May 19, 2021 · 4 comments
Closed

Add Global Privacy Control (GPC) to OkHttp #6683

SebastianZimmeck opened this issue May 19, 2021 · 4 comments
Labels
enhancement Feature not a bug

Comments

@SebastianZimmeck
Copy link

Is there interest to include Global Privacy Control (GPC) in OkHttp?

The idea of GPC is to give users a setting to opt out from tracking by attaching a respective flag to all HTTP requests. Major publishers, such as the New York Time and Washington Post, are already honoring GPC signals. Various browsers, such as Brave and the DuckDuckGo browser, and extensions have also implemented GPC settings. Users can send signals to sites they visit or to just some. It would be nice to bring GPC to the mobile ecosystem as well.

Here is the draft spec if anyone is interested in the details. I am computer science professor at Wesleyan University and one of the initiators of GPC.

Also, as you may be wondering, a major difference to the earlier Do Not Track (DNT) effort is that the California Attorney General will actually enforce GPC.

Looking forward to discuss ...

@connyduck
Copy link

So it is just a header sent with every request? You can create an interceptor that does that, I don't see why there is a need to change anything in OkHttp.

@SebastianZimmeck
Copy link
Author

You can create an interceptor that does that, I don't see why there is a need to change anything in OkHttp.

Well, attaching a header potentially for all apps' requests on a device isn't really feasible with an interceptor (without a VPN, web proxy, etc).

@swankjesse
Copy link
Collaborator

I think it's a neat idea. But I don't think it's appropriate to add this to OkHttp by default; instead app developers should opt in with their own interceptors.

@SebastianZimmeck
Copy link
Author

But I don't think it's appropriate to add this to OkHttp by default; instead app developers should opt in with their own interceptors.

Just want to clarify that GPC generally would need to be enabled by device users. But point taken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature not a bug
Projects
None yet
Development

No branches or pull requests

3 participants