w3c / webappsec-csp

WebAppSec Content Security Policy
https://w3c.github.io/webappsec-csp/
Other
210 stars 78 forks source link

"trusted-types-policy" missing from a violation's resource #666

Closed mbrodesser-Igalia closed 5 months ago

mbrodesser-Igalia commented 5 months ago

https://w3c.github.io/trusted-types/dist/spec/#should-block-create-policy step 9 sets a violation's resource to "trusted-types-policy".

https://w3c.github.io/webappsec-csp/#violation-resource doesn't mention that resource and neither mentions other resources may be used.

A fix could be to specify in the CSP that other specs may add such resources. The CSP spec would need to be checked whether that integrates properly with the remainder of that spec.

CC @evilpie @lukewarlow

lukewarlow commented 5 months ago

https://github.com/w3c/webappsec-csp/pull/659 - the upstreaming PR includes it in the list.