You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would require a toggle button in the preview tab to enable/disable user scripting.
Modifying individual elements of the iframe's DOM requires relaxing the sandbox to make it same-origin, but this requires using a Content Security Policy (in a meta tag) to prevent user-written JavaScript from executing. User-written CSS would also need to be sanitized to remove url('javascript:...
This would require a toggle button in the preview tab to enable/disable user scripting.
Modifying individual elements of the iframe's DOM requires relaxing the sandbox to make it same-origin, but this requires using a Content Security Policy (in a meta tag) to prevent user-written JavaScript from executing. User-written CSS would also need to be sanitized to remove
url('javascript:
...https://developers.google.com/web/fundamentals/security/csp/
https://www.w3.org/TR/CSP3/
The text was updated successfully, but these errors were encountered: