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

Incorrect Content Security Policy on some brave:// pages #14752

Closed
antonok-edm opened this issue Mar 15, 2021 · 2 comments
Closed

Incorrect Content Security Policy on some brave:// pages #14752

antonok-edm opened this issue Mar 15, 2021 · 2 comments
Labels
bug OS/Android Fixes related to Android browser functionality OS/Desktop

Comments

@antonok-edm
Copy link
Collaborator

Opening brave://adblock results in the following printed to the devtools console, and to stderr:

Unrecognized Content-Security-Policy directive 'defaultframe-ancestors'.

That error is caused by an incorrectly set CSP header from the request to the brave://adblock page, which has the following value:

child-src 'none';object-src 'none';require-trusted-types-for 'script';script-src chrome://resources chrome://brave-resources 'self';defaultframe-ancestors 'none';

...which appears to be the result of an incorrectly combined set of directives.

@antonok-edm antonok-edm added bug OS/Android Fixes related to Android browser functionality OS/Desktop labels Mar 15, 2021
@antonok-edm
Copy link
Collaborator Author

antonok-edm commented Mar 16, 2021

This also occurs on the webcompat reporter UI (brave://webcompat), Tor internals (brave://tor-internals), rewards internals (brave://rewards-internals), and tipping banner (brave://tip)

@antonok-edm antonok-edm changed the title Incorrect Content Security Policy on brave://adblock Incorrect Content Security Policy on some brave:// pages Mar 16, 2021
@antonok-edm
Copy link
Collaborator Author

This appears to have been fixed at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug OS/Android Fixes related to Android browser functionality OS/Desktop
Projects
None yet
Development

No branches or pull requests

1 participant