Merge pull request #454 from seanmorley15/csrf_error

Csrf error
This commit is contained in:
Sean Morley
2025-01-17 17:15:42 -05:00
committed by GitHub
11 changed files with 32 additions and 18 deletions

View File

@@ -63,7 +63,8 @@ export const actions: Actions = {
headers: {
Cookie: `sessionid=${sessionId}; csrftoken=${csrfToken}`,
'Content-Type': 'application/json',
'X-CSRFToken': csrfToken
'X-CSRFToken': csrfToken,
Referer: event.url.origin // Include Referer header
},
credentials: 'include'
});