Replies: 3 comments 1 reply
-
Hoping to give this a bump. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can you elaborate on where https://kit.svelte.dev/docs/configuration#csp falls short? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use a hook to extract the inline scripts and externalize into a file in order to have a tighter CSP. I'm using a function modified from a suggestion by Rich Harris:
My problem is that as soon as this finishes running, all the files which were written to the build folder are blown away, ostensibly because the static assets doesn't have them and overwrites it.
I've tried adding them to
static/js/boot
instead, but while it creates them correctly, they don't copy over.Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions