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

This commit is contained in:
George Powell
2026-02-13 01:56:24 -05:00
parent ea7a848125
commit 2de4e9e2a7
2 changed files with 9 additions and 13 deletions

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;