Skip to content

✨ [RUM-139] use trusted types policy #3514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BenoitZugmeyer
Copy link
Member

@BenoitZugmeyer BenoitZugmeyer commented May 2, 2025

Motivation

#3506

Changes

  • Configure Webpack to use the datadog-chunk Trusted Type policy to load chunks
  • Use the datadog-worker Trusted Type policy to load the compression worker

Thoughts

Ideally we would use the same policy for both, but:

  • the Webpack runtime is creating the policy internally and does not expose it anywhere, so we cannot reuse it
  • we cannot use the same name for both policies, because by default it's not allowed to create duplicated policies (see doc)

Test instructions

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.

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.

1 participant