How to resolve Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'browsing-topics'?

39.9k Views Asked by At

Just in the past couple days I have started getting console errors in chrome on my website that I'm developing on my local machine. The error is "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'browsing-topics'.

From brief googling, it seems to have something to do with Google's privacy settings for their new topics ad tracking thing. I am not using any ad related scripts on my website, so I don't know why it just suddenly started appearing. Can someone tell me how to get this to go away?

Edit - I figured out that the chrome extension uBlock origin is causing the error. I'd still like to figure out how to make it go away rather than just disabling uBlock origin.

4

There are 4 best solutions below

1
Terion On BEST ANSWER

According to the uBlock Origin issue report you can add the filter @@||localhost^$permissions=browsing-topics=() to your uBlock Origin filters to disable the messages. However it should have been fixed in uBlock Origin in this commit

1
najim el guennouni On

I disabled uBlock origin which removed the warning in the console

0
Matthias On

You can hide the message by focusing on the current context / iframe.

In the Chrome console, clicking the Settings icon and enabling "Selected context only" will only show console messages from the currently selected iframe, or the top window.

Console settings showing the "Selected context only" option

But beware: if you're debugging a page with iframes, and you want to see console messages from those iframes, then you'll need to keep in mind which context you have selected.

Here is where you select your context. It lists all iframes and extensions (I'm not sure if these run in iframes or not)

enter image description here

1
AudioBubble On

Add the url of your development site to the Trusted sites in uBlock Origin settings.