Restore missing CSRF header

This commit is contained in:
Darren Clarke 2024-10-09 12:21:06 +02:00
parent 66741f855d
commit e27c381405
3 changed files with 12 additions and 1 deletions

View file

@ -8,6 +8,8 @@ const getHeaders = async () => {
"Content-Type": "application/json",
Accept: "application/json",
"X-Browser-Fingerprint": `${session.expires}`,
// @ts-ignore
"X-CSRF-Token": session.user.zammadCsrfToken,
Cookie: allCookies
.map((cookie: any) => `${cookie.name}=${cookie.value}`)
.join("; "),