Steps to reproduce in isolation
npm create svelte@latest my-appcd my-appnpm installnpm add @svelte/adapter-node- Edit
svelte.config.js - Replace auto adapter with
adapter-node - Add
kit.csp.directivesforstyle-srcwith'unsafe-inline' - Add
kit.inlineStyleThresholdwith a value of e.g.5 * 1024 npm run buildnode build- Open the webpage (
http://localhost:3000) in your browser - Check console for errors
Steps to reproduce in this repo
git clone https://github.com/lietu/sveltekit-csp-democd sveltekit-csp-demonpm installnpm run buildnode build- Open the webpage (
http://localhost:3000) in your browser - Check console for errors