Skip to content

Commit 362dc38

Browse files
committed
Updates Vite’s CSRF setting. Dunno why empty array works.
1 parent 60e0011 commit 362dc38

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

svelte.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ const config = {
77
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
88
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
99
adapter: adapter(),
10-
// YIKES!
1110
csrf: {
12-
// TODO: Figure this out
13-
checkOrigin: false
11+
trustedOrigins: []
1412
}
1513
}
1614
};

0 commit comments

Comments
 (0)