Skip to content

Commit

Permalink
Merge pull request #18 from frc971/csp
Browse files Browse the repository at this point in the history
Add a sveltekit CSP configuration
  • Loading branch information
maxstrid authored Jan 5, 2024
2 parents aea7919 + 05a363f commit 48480d3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ const config = {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter()
adapter: adapter(),
// CSP Configuration taken from https://kit.svelte.dev/docs/configuration#csp
csp: {
mode: 'hash',
directives: {
'script-src': ['self']
}
}
}
};

Expand Down

0 comments on commit 48480d3

Please sign in to comment.