-
Notifications
You must be signed in to change notification settings - Fork 88
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
Unexpecting appearance of unsafe-inline on CSP #346
Comments
The bundle only injects Some bundles (like the Symfony WebprofilerBundle) modify the CSP headers to include their own nonces/hashes (along with Can you check if the generated header value in |
@martijnc |
I am not sure why it's being injected right now, I'd have to check too, but note that unsafe-inline is ignored if a nonce or a hash is present (with browsers supporting CSP2 and above). So it is completely safe. |
One option would be |
Hello,
I believe i have found a bug, or that my knowledge of CSP is lacking.
Given the following csp configuration:
The content security policy correctly show the connect-src policy only.
If i add the same thing on default-src, making the configuration look like this:
Then the response includes unsafe-inline as well.
Is this a known issue ? Or is it expected behaviour ?
The text was updated successfully, but these errors were encountered: