Skip to content
Snippets Groups Projects
Commit 2aa392ab authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Disable csrf.

parent 512cdcc0
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ import node from "@sveltejs/adapter-node" ...@@ -2,7 +2,7 @@ import node from "@sveltejs/adapter-node"
import preprocess from "svelte-preprocess" import preprocess from "svelte-preprocess"
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const svelteKitConfig = {
kit: { kit: {
// By default, `npm run build` will create a standard Node app. // By default, `npm run build` will create a standard Node app.
// You can create optimized builds for different platforms by // You can create optimized builds for different platforms by
...@@ -10,6 +10,11 @@ const config = { ...@@ -10,6 +10,11 @@ const config = {
adapter: node({ adapter: node({
precompress: true, precompress: true,
}), }),
csrf: {
// Disabling is required for authentication.
checkOrigin: false,
},
}, },
// Consult https://github.com/sveltejs/svelte-preprocess // Consult https://github.com/sveltejs/svelte-preprocess
...@@ -17,4 +22,4 @@ const config = { ...@@ -17,4 +22,4 @@ const config = {
preprocess: [preprocess({})], preprocess: [preprocess({})],
} }
export default config export default svelteKitConfig
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment