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
{{ message }}
Repository navigation
@alpinejs/csp throws SecurityError when running in a sandboxed iframe without allow-same-origin #4892
@alpinejs/csp accesses localStorage unguarded during initialization. In a sandboxed iframe without the allow-same-origin flag, the document has an opaque origin and any access to localStorage throws a SecurityError, which prevents Alpine from initializing at all.
Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window':
The document is sandboxed and lacks the 'allow-same-origin' flag.
at Array.forEach (<anonymous>)
at /node_modules/@alpinejs/csp/dist/module.esm.js:1889:40
Activity
xhaggi commentedon Sep 4, 2026
👍 thank you