Skip to content

Content Security Policy Error FixΒ #29

@Rufistofeles

Description

@Rufistofeles

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions