Commit 7bd13781 authored by Patrick Ade's avatar Patrick Ade
Browse files

Fix API endpoint for setting CSRF token in auth store

parent c8867f30
......@@ -24,7 +24,7 @@ export const useAuthStore = defineStore('auth', {
},
actions: {
async setCsrfToken(): Promise<void> {
await fetch('http://localhost:8000/api/set-csrf-token', {
await fetch('http://localhost:8000/api/set_csrf_token', {
method: 'GET',
credentials: 'include',
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment