Skip to content

Sadly CSP need unsafe-nonce to work #13

Description

@rouilj

Very nice JS library you have here.

I spent the weekend working with it and I like it. Unfortunately I have to change the content security policy to
include unsafe-inline to make it work. The diff of my CSP is:

-       "style-src 'self' 'nonce-{nonce}'; "
+       "style-src 'self' 'unsafe-inline'; "

sadly this is kind of deal breaker. I did some searching for svelte and CSP and it seems they did have some
issues with it in the past, but they were resolved. It's possible that rebuilding with updated dependencies will fix
this. However I am not steeped enough in svelte, npm etc. to try it myself.

Any chance you can look into this and see if it is easily fixable?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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