-
Notifications
You must be signed in to change notification settings - Fork 89
Add an example opt-out meta tag #47
base: main
Are you sure you want to change the base?
Conversation
Provide a simple, cut and pasteable example of a FLoC opt out.
@xyaoinum PTAL? I see in this test exactly how to opt out with an HTTP response header, but @dmarti is right that we should document the meta-tag version, if there is such. |
I don't think permissions-policy is supported in http-equiv, so you may only use the |
How would you opt out if your site is on a shared hosting service where you can't set the headers in HTTP? Is the correct HTML going to be:
|
Looks like the way to opt out is in HTTP headers, not in the HTML body. (The |
How do you opt out if you are on a shared hosting plan where you can't set HTTP headers? (related issue: #13 ) |
There isn't a way right now, and I agree that we should add one. @jkarlin Turns out this is a feature request, not a documentation request! What's the right way to get a FLoC opt-out in HTML? Not everyone can set HTTP response headers, and |
This is an alternate version of WICG#47 covering only the HTTP header. In the future when an opt-out that does not require setting a header is available, the alternate method might be a better example to include here.
@jkarlin Thank you for the links. "you can't have a policy header occurring after something which it is supposed to control" -- this seems like it would be important for scripts that might occur in the head before the meta element. But since FLoC is built into the browser, it could postpone the train/no-train decision until after the entire head element has been processed, whether or not a script has already run. Another possibility would be to extend the approach in Special tags that Google understands and have a separate meta tag with name and value, similar to Could be something like |
Is the HTTP header only applicable to HTML pages, or does it need to be sent for any other resource types (like JS or CSS) which themselves can request other content? |
Links to more discussion available here: WICG/floc#47 (comment)
@dmarti - Out of interest - what does "shared hosting" have anything to do with settings headers? Is it that your host only supports HTML? Is that maybe the question... Setting FLoC headers via HTML rather than response headers? |
@OwenMelbz Yes, some basic web hosts do allow you to upload HTML but don't let you set HTTP response headers. There are also services like web retail and blog hosts that let you edit your site's HTML template but not run server-side code that could set a header. |
Provide a simple, cut and pasteable example of a FLoC opt out.