-
Notifications
You must be signed in to change notification settings - Fork 78
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
CSP headers are incorrect with multiple rules #682
Comments
I don't think I understand the question. Content-Security-Policy: a
Content-Security-Policy: b
Content-Security-Policy: c would imply that Content-Security-Policy: a; b; c would also enforce Is that somewhere near what you're asking? |
Per combining semantics shouldn't it be identical to
? |
Yes. But content-security-policy: script-src ... 'nonce-75mShyMY4JEfhPfGuk2DeA';object-src 'none'; ...
content-security-policy: script-src https://apis.google.com [more domains go here]; ... That enforces a nonce constraint and also enforces an allowlist of domains. That's not possible to do in a single policy. |
Hi everyone,
When we config CSP header like:
Each header is independent. (It means we must write rule for both script-src-elem and connect-src,...)
How to split Content-Security-Policy to multiple headers? Because it's very long.
Many thanks
The text was updated successfully, but these errors were encountered: