Skip to content

docs(js): Document Trusted Types policies of the SDK and Loader Script - #20968

Draft
sentry-junior[bot] wants to merge 1 commit into
masterfrom
docs/js-trusted-types
Draft

sentry-junior[bot] wants to merge 1 commit into
masterfrom
docs/js-trusted-types

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

DESCRIBE YOUR PR

Documents Trusted Types support in the JavaScript SDK and the Loader Script: which policies Sentry creates (sentry-sdk, sentry-loader), what they're used for, how to allow them in the trusted-types CSP directive, and what happens with and without require-trusted-types-for 'script'.

  • New page: best-practices/trusted-types.mdx (Special Use Cases), with the policy table, a copy-pasteable CSP header and <meta> example, 'allow-duplicates' for pages with several SDK versions, fallback behavior, and known limitations.
  • Session Replay CSP section and Loader Script CSP section: one short pointer each to the new page (the Loader section lists both policy names).

Don't merge until these ship:

TODOs / open questions

IS YOUR CHANGE URGENT?

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

PRE-MERGE CHECKLIST

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

via @msonnb.

--

View Session [Sentry]

Co-Authored-By: Martin Sonnberger <26038247+msonnb@users.noreply.github.com>
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Nov 25, 2026 9:19am UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Nov 25, 2026 9:19am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 51abdcd9 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant