You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Content-Security-Policy: aContent-Security-Policy: bContent-Security-Policy: c
would imply that a and b and c are all enforced. You don't need to specify each directive in a distinct header, though:
Content-Security-Policy: a; b; c
would also enforce a, b, and c. The two models differ in some edge cases that are important (e.g. enforcing hashes or nonces and an allowlist of domains), but they're often interchangable.
Yes. But Content-Security-Policy: a, b, c is not identical to Content-Security-Policy: a; b; c. The former creates three policies, all of which are enforced. The latter creates one policy with three directives, all of which are enforced. These are distinct. For example, a simplified version of the headers sent from myaccount.google.com is:
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: