securityheaders / securityheaders-bugs

Bug tracker for https://securityheaders.io
20 stars 0 forks source link

Trusted-Types #92

Open craigfrancis opened 3 years ago

craigfrancis commented 3 years ago

The CSP header test should support Trusted Types, a feature that blocks unsafe JavaScript APIs such as .innerHTML which can result in DOM-based cross-site scripting vulnerabilities.

The CSP test on SecurityHeaders should support these directives:

This security feature has been supported by Chrome/Edge since version 83 (19th May 2020).

And there is a good writeup of the feature by Krzysztof Kotowicz.