File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ const config = {
77 // for more information about preprocessors
88 preprocess : vitePreprocess ( ) ,
99 compilerOptions : { runes : true } ,
10+
11+ csrf : {
12+ // Disable origin checking, so that form submission works when using an API client.
13+ // FIXME: This is definitely a security issue, and so I should find a workaround at some point.
14+ trustedOrigins : true ,
15+ } ,
1016
1117 kit : {
1218 // Import aliases
@@ -20,11 +26,6 @@ const config = {
2026 version : {
2127 name : process . env . npm_package_version ,
2228 } ,
23- // Disable origin checking, so that form submission works when using an API client.
24- // FIXME: This is definitely a security issue, and so I should find a workaround at some point.
25- csrf : {
26- checkOrigin : false ,
27- } ,
2829 // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
2930 // If your environment is not supported, or you settled on a specific environment, switch out the adapter.
3031 // See https://kit.svelte.dev/docs/adapters for more information about adapters.
You can’t perform that action at this time.
0 commit comments