Skip to content

Commit d7a8cb7

Browse files
committed
remove personal csp, replace with documenting comments
1 parent 4dd346c commit d7a8cb7

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

svelte.config.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import {vitePreprocess} from '@sveltejs/vite-plugin-svelte';
22
import adapter from '@sveltejs/adapter-static';
3-
import {create_csp_directives} from '@fuzdev/fuz_ui/csp.js';
4-
import {csp_trusted_sources_of_ryanatkn} from '@fuzdev/fuz_ui/csp_of_ryanatkn.js';
53

64
/** @type {import('@sveltejs/kit').Config} */
75
export default {
@@ -12,10 +10,15 @@ export default {
1210
adapter: adapter(),
1311
paths: {relative: false}, // use root-absolute paths for SSR path comparison: https://kit.svelte.dev/docs/configuration#paths
1412
alias: {$routes: 'src/routes'},
15-
csp: {
16-
directives: create_csp_directives({
17-
trusted_sources: csp_trusted_sources_of_ryanatkn,
18-
}),
19-
},
13+
14+
// Example CSP using https://ui.fuz.dev/docs/csp
15+
//
16+
// import {create_csp_directives} from '@fuzdev/fuz_ui/csp.js';
17+
// import {csp_trusted_sources_of_ryanatkn} from '@fuzdev/fuz_ui/csp_of_ryanatkn.js';
18+
// csp: {
19+
// directives: create_csp_directives({
20+
// trusted_sources: csp_trusted_sources_of_ryanatkn,
21+
// }),
22+
// },
2023
},
2124
};

0 commit comments

Comments
 (0)