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

4

53

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.

Blakeslee answered 28/7, 2023 at 21:27 Comment(0)
M
16

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

Mcmahan answered 22/8, 2023 at 9:40 Comment(1)
I did that and it didn't work. It's Nov 2023Fulvous
A
62

I disabled uBlock origin which removed the warning in the console

Atombomb answered 1/8, 2023 at 11:51 Comment(1)
If I could I'd flag this as VLQ.Scroggins
M
16

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

Mcmahan answered 22/8, 2023 at 9:40 Comment(1)
I did that and it didn't work. It's Nov 2023Fulvous
J
14

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

Joyajoyan answered 4/8, 2023 at 21:46 Comment(0)
S
8

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

Sorgo answered 28/10, 2023 at 20:26 Comment(1)
This is actually the new solution for 2023, but it's identical with najim el guennouni's, which is to disable uBlock Origin for the web site, which does the same thing.Fulvous

© 2022 - 2024 — McMap. All rights reserved.