Restore missing CSRF header
This commit is contained in:
parent
66741f855d
commit
e27c381405
3 changed files with 12 additions and 1 deletions
|
|
@ -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("; "),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue