← Back to release summary

Trusted Types for DOM Manipulation

Category
Security
Type
New or changed feature
Status
Enabled by default (Chrome 83)
Intent stage
Prepare to ship

WPT details: https://wpt.fyi/results/trusted-types

Summary

'Trusted Types' offers an (optional) mechanism for web sites to protect themselves against XSS (cross-site scripting) attacks.It limits the attack surface from potentially the entire code base to a handful of "policies" that a developer can implement and install, and whose usage the browser will then enforce. "Trusted types" then ensure that all risk-ful parts of the DOM can only be used by data that has gone through such a developer-supplied policy. Release is expected in Chrome 83.

Standards & signals

Ecosystem

Docs: https://w3c.github.io/webappsec-trusted-types/dist/spec/

Samples: https://web.dev/trusted-types/

Explainers: https://github.com/w3c/webappsec-trusted-types/blob/master/explainer.md

View on chromestatus.com