Skip to content
T

Trusted Types

A browser API to prevent DOM-Based Cross Site Scripting in modern web

by w3cFree

#2509in Developer Tools
0In stores

Description

The W3C repository for Trusted Types, a browser API that helps prevent DOM-based cross-site scripting in modern web applications. The reposi…

Highlights

  • Browser API that helps prevent DOM-based XSS
  • Polyfill with api_only and full browser builds
  • npm package for Node.js with CommonJS and ES modules
  • Tinyfill for createPolicy without enforcement

Ratings & Reviews

No ratings yet

Be the first to rate Trusted Types.

People also visit

P

Parallel DOM

Parallelize heavy DOM operations, workers concurrency

Developer Tools
Launch
T

TrustCaptcha

Invisible, GDPR-compliant CAPTCHA to protect your site from bots and spam

Developer Tools
Launch
R

Run

A secure and efficient alternative to `eval` for coding agents

Developer Tools
Launch
X

xss-cross-site-scripting

XSS playbook. Use when user-controlled content reaches HTML, attributes

AI Skills
Get
N

NoScript Security Suite

The best security you can get in a web browser

Utilities
Launch
T

tirreno

open-source cyberfraud protection platform for webapps & SaaS

Developer Tools
Launch

Trusted Types FAQ

What problem does it solve?

DOM-based cross-site scripting in web applications.

Which browsers support it natively?

Chromium-based browsers from version 83 onward, according to the repository.

What is the difference between the builds?

The api_only build defines the API. The full build also enforces types in the DOM based on the document's Content Security Policy.

Can I use it in Node.js?

Yes. The polyfill is an npm package named trusted-types and supports CommonJS and ES modules.

Where is the specification?

The repository hosts the specification draft and the polyfill code on GitHub at w3c/trusted-types.

What are the best Trusted Types alternatives?

Popular alternatives to Trusted Types include Parallel DOM, TrustCaptcha and Run. See all Trusted Types alternatives

Developer Stuff

Badges