Livewire and unsafe-eval #91
Replies: 4 comments 1 reply
-
Hello, Did you find a solution ? Regards |
Beta Was this translation helpful? Give feedback.
-
Hey, No solution at all and issue on git above still open. Due to the nature of Livewire and Alpine, I don't even think it's possible to fix it. Again, this is not a problem with this repo, but should be a known conflict maybe. |
Beta Was this translation helpful? Give feedback.
-
Yes it's a problem of Livewire and Alpine JS. DO you known if there is an alternative to livewire/AlpineJS and Jetstream compatible with CSP and out problem ? |
Beta Was this translation helpful? Give feedback.
-
Unless refactor the whole UI with Vue (or worse react) I did not find any alternative, but if I do I will post here and in the open issue on Livewire. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Livewire requires unsafe-eval to be set to true, which is something that will never happen due to security concerns.
Using the nonce is working when the page is loaded
But then throws an error from Alpine:
I understand this is not an issue related to bepsvpt/secure-headers and already added my comment here livewire/livewire#6113 , but just in case if anyone ran into this problem and found a workaround.
Beta Was this translation helpful? Give feedback.
All reactions