Steps to reproduce in isolation
npm create svelte@latest my-app
cd my-app
npm install
npm add @svelte/adapter-node
svelte.config.js
adapter-node
kit.csp.directives
for style-src
with 'unsafe-inline'
kit.inlineStyleThreshold
with a value of e.g. 5 * 1024
npm run build
node build
http://localhost:3000
) in your browserSteps to reproduce in this repo
git clone https://github.com/lietu/sveltekit-csp-demo
cd sveltekit-csp-demo
npm install
npm run build
node build
http://localhost:3000
) in your browser