Another attempt at fixing Cross-site POST form submissions are forbidden

This commit is contained in:
George Powell committed 2026-02-13 01:56:24 -05:00
1 parent ea7a848125
commit 2de4e9e2a7
2 files changed
+9 -13

No files matched your search

+8 -1
View File
@@ -7,7 +7,14 @@ const config = {
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: { adapter: adapter() }
kit: {
adapter: adapter(),
csrf: {
// Disabled because Apple Sign In uses cross-origin form_post.
// The Apple callback route has its own CSRF protection via state + cookie.
checkOrigin: false
}
}
};
export default config;