Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit ccc8c19

Browse files
committed
Checkorigin false
1 parent 444d794 commit ccc8c19

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/routes/+page.svelte

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<h1>Welcome to SvelteKit</h1>
22
<p>Visit <a href="https://kit.svelte.dev">kit.svelte.dev</a> to read the documentation</p>
33

4+
<h1>v1</h1>
5+
46
<form method="POST" action="/auth?/login">
57
<button>Login</button>
68
</form>

svelte.config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ const config = {
1515
customStaticWebAppConfig: {
1616
platform: {
1717
apiRuntime: 'node:18'
18-
}
18+
},
19+
1920
}
20-
})
21+
}),
22+
csrf: {
23+
checkOrigin: false
24+
}
2125
}
2226
};
2327

0 commit comments

Comments
 (0)