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

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'. #1506

Closed
frederikhors opened this issue May 20, 2021 · 4 comments

Comments

@frederikhors
Copy link
Contributor

frederikhors commented May 20, 2021

Describe the bug
Warning in console:

Error with Permissions-Policy header: Unrecognized feature: 'interest-cohort'.

To Reproduce
svelte-kit init

Information about your SvelteKit Installation:

Diagnostics
  • The output of npx envinfo --system --npmPackages svelte,@sveltejs/kit,vite --binaries --browsers:

    System:
    OS: Windows 10 10.0.19042
    Binaries:
    Node: 14.17.0 - C:\Program Files\nodejs\node.EXE
    npm: 7.13.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
    @sveltejs/kit: 1.0.0-next.108 => 1.0.0-next.108
    svelte: 3.38.2 => 3.38.2
    vite: 2.3.3 => 2.3.3

  • Your browser: Chrome 90

  • Your adapter (e.g. Node, static, Vercel, Begin, etc...): static

@dummdidumm
Copy link
Member

This is a result of #1263 . You either can opt in to floc if you want to, or just ignore this.

@frederikhors
Copy link
Contributor Author

I am always of the opinion that a default browser warning is wrong.

@bugs181
Copy link

bugs181 commented Nov 1, 2021

I am always of the opinion that a default browser warning is wrong.

Then you may wan't to complain to Google for introducing this "feature" to begin with. ;)
Google is an analytics company and not all of it's users deserve to have their privacy invaded with an "opt-out" feature. The browser is complaining because it's not letting the browser fingerprint you.

You can read more about it here and here

I'm actually of the mindset that I LOVE that the Svelte team made it an "opt-in" feature, instead of the other way around.

@jonathanstanley
Copy link

jonathanstanley commented Mar 10, 2022

One way to address this is to edit your svelte.config.js to allow FLoC during development-only.

const config = {
  // etc...
  kit: {
    // etc...
    floc: process.env.NODE_ENV === "development",
  },
};

IMO, I would only do that if developing using Brave browser. Brave has entirely disabled FLoC at the browser level 🤩. Otherwise development is essentially the same as Google Chrome.

See also: brave/brave-browser#14942 (comment)

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

4 participants