Skip to content
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

Allow passing a trusted types policy to the createApi function #5

Merged

Conversation

rayd
Copy link
Member

@rayd rayd commented Jan 26, 2023

In order to properly support trusted types in websites, the iframe that creates "clean" elements must have a default policy. The approach taken here is that a trusted types policy can be passed in as an option to the createApi function. This policy will be used to set any "injection sink" values for the elements created by the library.

@shortcut-integration
Copy link

Copy link

@dielduarte dielduarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we have a follow-up PR to use the trustedTypes opts on SDK?

@rayd rayd merged commit 2a31fba into master Feb 2, 2023
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.

2 participants