-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Please provide better examples for csp #21
Comments
Hi @bepsvpt, how are you man?, i have troubles by adding the data attribute on: The 'data' attribute not works! Can you help me? Thanks! |
Found the problem to allow 'data', if some one needs to allow 'data' on each attributes (font-src, img-src, style-src, etc), you can do something like this:
I hope this will be helpfull |
Hi @dsingleton47 and @JohanMa4, I have updated the document. If you have any suggestion, I will deeply appreciate your feedback. |
Please improve Documents, the CSP part is very bad at understanding. |
Hi @agenciatamandua, If you can provide your requirements, I can include it in examples. |
Please provide better examples for CSP in the documentation, if I provide anything other than:
'self' => true I the result is an empty img-src value, this is true if I provide an array as well. for example using the example from paragonie/csp-builder with:
'self' => true,
'data' => true
my resulting policy only has self, data doesn't work at all. If I try to provide a domain, the same is true.
The text was updated successfully, but these errors were encountered: