Skip to content

Commit

Permalink
Checkorigin false
Browse files Browse the repository at this point in the history
  • Loading branch information
idan committed Jul 4, 2024
1 parent 444d794 commit ccc8c19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<h1>Welcome to SvelteKit</h1>
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>

<h1>v1</h1>

<form method="POST" action="/auth?/login">
<button>Login</button>
</form>
Expand Down
8 changes: 6 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ const config = {
customStaticWebAppConfig: {
platform: {
apiRuntime: 'node:18'
}
},

}
})
}),
csrf: {
checkOrigin: false
}
}
};

Expand Down

0 comments on commit ccc8c19

Please sign in to comment.