coliff/bootstrap-show-password-toggle

Content Security Policy Error Fix

Rufistofeles opened this issue · 1 comments

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:;
        " />

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