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

fix: set sandbox iframe styles directly through JavaScript #449

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

arturovt
Copy link
Contributor

This commit sets style properties on the sandbox directly using the style[property] = value syntax. This method is allowed by CSP configurations. Previously, it was calling sandbox.setAttribute('style', '...'), which is often restricted because it involves setting inline styles via an attribute.

This commit sets style properties on the sandbox directly using the `style[property] = value`
syntax. This method is allowed by CSP configurations. Previously, it was calling
`sandbox.setAttribute('style', '...')`, which is often restricted because it involves setting
inline styles via an attribute.
@vercel
Copy link

vercel bot commented Aug 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
partytown ❌ Failed (Inspect) Aug 27, 2023 5:55pm

@mhevery mhevery merged commit 9a5d1ad into BuilderIO:main Aug 28, 2023
5 checks passed
@arturovt arturovt deleted the fix/inline-styles branch August 28, 2023 19:55
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