-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add content security policy support #223
Comments
@ziadoz If it helps, this is the CSP I'm using for Pulse.
I had to configure a standalone CSP for |
@valorin Cheers, that really helps me out! I closed the ticket because I realised I could attach my own policy to the Pulse route, I just needed to poke around and write all the directives. I translated what you wrote into a Spatie CSP policy and it all works perfectly (thanks again):
Then just hook it up in the
|
Hey.
I'm setting up Pulse on an app that uses Spatie's CSP package, and I've noticed a bunch of errors occur in the web inspector console:
I can resolve the font and image ones by adding
fonts.bunny.net
andgravatar.com
to our policy, but I can't resolve the inline script and style ones, as I think those require anonce
attribute adding to them.I could tweak our policy to bypass Pulse, but this might mean I can't deploy it to staging/production in the corporate environment I want to use it in.
Would it be possible for Pulse to ship with the CSP policy headers or meta tags it needs to run? Or is there a way I can properly configure the policy on my end?
Cheers.
The text was updated successfully, but these errors were encountered: