Skip to content

CSP hashes should be replaced if minifyCSS or minifyJS options are used #2

@Cloudef

Description

@Cloudef

When using svelte with csp and html-minifier adapter with minifyCSS or minifyJS enabled, the hash of the inline styles and js scripts might change. The minifier should calculate the hash of the inline css / script before and after transformation and replace the hash in the CSP header with the new one.

Some other options may affect the contents of inline scripts and css, such as quoteCharacter and collapseWhitespace

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