Chromium Code Reviews
DescriptionCSP: Fix handling of nonces in report-only mode.
Our current implementation will only allow a nonce to bypass whitelists if
it is present in all active policies, not just those delivered in
enforce-mode.
This patch adjusts the logic in ContentSecurityPolicy to ensure that nonces
bypass whitelists if and only if they are present in each enforced policy.
In particular, note that policies which do not contain the relevant directive
will no longer be considered as passing a nonce check (though they will, of
course, continue to pass the whitelist check which happens during fetching).
BUG=611652
Committed: https://crrev.com/a309dc2c752b103e6e858a92a0b68ab824212cb0
Cr-Commit-Position: refs/heads/master@{#395189}
Patch Set 1 #
Total comments: 2
Patch Set 2 : estark@ #
Messages
Total messages: 12 (5 generated)
|
|||||||||||||||||||||||||||||||||||||