Skip to content

SCP using : style-src without 'unsafe-inline' #24

@JSON-stringify-24

Description

@JSON-stringify-24

The official package can prevent this issue using css and js library separatly:

image

But unafortunatly this package only use sweetalert2.all.min.js provoking the next error:

sweetalert2.all.js:4283 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' fonts.googleapis.com". Either the 'unsafe-inline' keyword, a hash ('sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU='), or a nonce ('nonce-...') is required to enable inline execution.

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