How to configure Laravel Pulse to work with CSP (Content-Security-Policy)? #55982
Unanswered
rizkywahyuprasetiyo
asked this question in
Q&A
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.
-
I'm using Laravel Pulse to monitor active users and requests in production.
However, since I implemented a Content-Security-Policy (CSP) header with a nonce, Pulse's inline scripts are blocked. Livewire (used by Pulse) injects inline scripts without a way to customize nonce values.
Example error:
I've considered:
'unsafe-inline'
(not secure)/pulse
)My questions:
Any help or recommendation is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions