Skip to content

Conversation

@atjn
Copy link
Contributor

@atjn atjn commented Apr 19, 2020

Trusted Types is a new API that enforces the use of strictly typed inputs when using DOM-manipulating functions like .innerHTML. Using the feature can help developers secure their apps against XSS attacks which use loosely typed inputs to make internal functions work in ways they were not intended to.

Chrome is adding this in v83. I ran a quick test to confirm it.
https://www.chromestatus.com/feature/5650088592408576

Closes #4787

@Fyrd
Copy link
Owner

Fyrd commented Apr 24, 2020

Technically covered by https://caniuse.com/#feat=mdn-http_headers_csp_content-security-policy_trusted-types already, but doesn't look like it has the Chrome data yet and I don't mind replacing it with a caniuse table if it has additional information. I assume you plan on updating most of the u values in the near future? Thanks!

@atjn
Copy link
Contributor Author

atjn commented Apr 24, 2020

Oh snap i didn't notice there was an MDN table for it. But yeah, i think this will be a hot topic in the near future, so having a native caniuse table for it makes sense to me.

The u values was an oversight.

Thanks for the comments!

@Fyrd Fyrd merged commit 5221c88 into Fyrd:master Apr 25, 2020
@Fyrd
Copy link
Owner

Fyrd commented Apr 25, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trusted Types

2 participants