Add CSP (Content Security Policy) support for Livewire v4 #2090
Unanswered
musilondrej
asked this question in
7.x (next)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Livewire v4 introduced a
csp_safemode with a dedicated Alpine CSP build (livewire.csp.esm). When using this mode, PowerGrid throws a console error:Uncaught Error: CSP Parser Error: Unexpected token: PUNCTUATION ")"Alpine's CSP parser cannot handle the
this.$js()callback syntax. The table renders fine, but the@scriptlogic (pgRowTemplates,pgResourceIcons,pgActions,pgActionsHeader) never executes.It would be great if PowerGrid supported Livewire v4's CSP mode as documented at https://livewire.laravel.com/docs/4.x/csp.
Environment
All reactions