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 Error Fix #29

Open
Rufistofeles opened this issue Jul 7, 2021 · 1 comment
Open

Content Security Policy Error Fix #29

Rufistofeles opened this issue Jul 7, 2021 · 1 comment

Comments

@Rufistofeles
Copy link

Rufistofeles commented Jul 7, 2021

My project uses the content security policy and it refuses to load the image with the next error message:

"Refused to load the image 'data:image/svg+xml,%3Csvg' "

So to fix this I had to use the next tag:

<meta http-equiv="Content-Security-Policy" content="
        default-src 'none';
        style-src 'self' 'unsafe-inline';
        img-src 'self' data:;
        " />
@coliff
Copy link
Owner

coliff commented Jul 8, 2021

Thanks for reporting this - I'll consider adding something to README FAQ about this.

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

2 participants