Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel2
Web
Commits
7bd13781
Commit
7bd13781
authored
Jun 02, 2025
by
Patrick Ade
Browse files
Fix API endpoint for setting CSRF token in auth store
parent
c8867f30
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/src/stores/auth.ts
View file @
7bd13781
...
...
@@ -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
'
,
})
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment