-
Notifications
You must be signed in to change notification settings - Fork 73
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
Should require-trusted-types-for
support trusted scripts and trusted script URLs?
#383
Comments
The note is technically correct, but unclear. The intention here was that there are 2 sink groups currently defined: DOM XSS and HTML.
|
I realized there must be another confusion here too. |
Indeed, that was the confusion.
|
Thanks for the explanation. It seems https://w3c.github.io/trusted-types/dist/spec/#require-trusted-types-for-csp-directive could be simplified to
|
I was also initially confused by this, there was #256 which ended up not being valid but it's possible we'd want to add other sink groups in future and as such not want to limit the spec to just scripts. Being pragmatic given this has shipped in Chromium already I think it might make sense just to clarify the spec language and any documentation (such as MDN) but leave it as it is currently? |
Alternatively we could keep this as it is (maybe deprecated?) but introduce a new |
So, in general, +1 to:
|
…jection sinks Allowed clarifying that all XSS injection sinks are covered by the "trusted-types-sink-group" named 'script'. Closes w3c#383
https://w3c.github.io/trusted-types/dist/spec/#require-trusted-types-for-csp-directive contains a note that currently only the enforcement of trusted types for DOM XSS injection sinks is supported. The corresponding ABNF form reflects that.
However trusted scripts (https://w3c.github.io/trusted-types/dist/spec/#trusted-script) and trusted script urls (https://w3c.github.io/trusted-types/dist/spec/#trused-script-url) are specified.
The text was updated successfully, but these errors were encountered: