Skip to content
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

Content-Security-Policy external pictures images #3060

Closed
bonnebulle opened this issue May 25, 2024 · 1 comment
Closed

Content-Security-Policy external pictures images #3060

bonnebulle opened this issue May 25, 2024 · 1 comment

Comments

@bonnebulle
Copy link

Hello, yes, I noticed this is not a full maintained project, thanks for all the great work
Am searching a way to display content (images) out of my domaine...
but Content-Security-Policy (CSP)
Content-Security-Policy : The page’s settings blocked the loading of a resource (media-src) at data: because it violates the following directive: “default-src 'self' 'unsafe-inline' 'unsafe-eval'”
Content-Security-Policy : The page’s settings blocked the loading of a resource (img-src) at https://cdn.sanity.io/images/..../image.jpg
I know I need to search a way working on Nginx !
But, if anyone have the same issue, we can help to find a solution here !
Thanks again

@bonnebulle
Copy link
Author

I finaly modify cps/web.py
csp += " 'unsafe-inline' 'unsafe-eval'; font-src 'self' data:; img-src *"
An admin (gui) option should help ;)
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant