Skip to content

Svelte 5 and CSP #14270

Open
Open
@eltigerchino

Description

@eltigerchino

@eltigerchino please find a minimal reproduction attempt here

This is basically the standard sveltekit demo and adjustment were made in commit 92df14f (static adapter + CSP).

To reproduce:

  1. npm run build
  2. npm run preview
  3. Open project home page and start the browser console
  4. Reload page -> csp style issue
  5. Click on a button -> more csp style issue

On my large project, I also have inline scripts issues but this seems not visible with this minimalistic project.
With svelte4 using "self" and "blob:" for script-src were enough.

Originally posted by @mulder999 in sveltejs/kit#12879 (reply in thread)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions