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

Content Security Policy with server style-src/default-src directive #18

Open
rnkn opened this issue Feb 28, 2021 · 1 comment
Open

Content Security Policy with server style-src/default-src directive #18

rnkn opened this issue Feb 28, 2021 · 1 comment

Comments

@rnkn
Copy link

rnkn commented Feb 28, 2021

Hello,

Thank you for making PageExtender :)

From my research, I think my issue is likely a server configuration problem, but with the site https://marc.info I get no effect when trying to apply a PageExtender stylesheet and receive the following error:

[Error] Refused to apply a stylesheet because its hash, its nonce, or 'unsafe-inline' appears in neither the style-src directive nor the default-src directive of the Content Security Policy. (marc.info, line 1)

I'm not sure if there's anything you can do about this because I think these directives are to do with Apache, but I just thought I'd ask.

@fphilipe
Copy link
Owner

fphilipe commented Mar 9, 2021

I'm afraid CSP is interfering here. The initial script from the extension is executed, but anything injected by that script is disallowed.

Will have to investigate if there's a workaround. Thanks for reporting!

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

2 participants