summaryrefslogtreecommitdiff
path: root/client/svelte.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/svelte.config.js')
-rw-r--r--client/svelte.config.js20
1 files changed, 15 insertions, 5 deletions
diff --git a/client/svelte.config.js b/client/svelte.config.js
index c138f77..cedc080 100644
--- a/client/svelte.config.js
+++ b/client/svelte.config.js
@@ -3,13 +3,23 @@ import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
- // Consult https://svelte.dev/docs/kit/integrations
- // for more information about preprocessors
- preprocess: vitePreprocess(),
+ // Consult https://svelte.dev/docs/kit/integrations
+ // for more information about preprocessors
+ preprocess: vitePreprocess(),
- kit: {
- adapter: adapter()
+ kit: {
+ adapter: adapter()
+ },
+ csp: {
+ directives: {
+ 'script-src': ['self']
+ },
+ // must be specified with either the `report-uri` or `report-to` directives, or both
+ reportOnly: {
+ 'script-src': ['self'],
+ 'report-uri': ['/']
}
+ }
};
export default config;