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

@ -20,6 +20,9 @@ export const ZammadLoginProvider: FC<PropsWithChildren> = ({ children }) => {
if (response.status !== 200) {
window.location.href = "/zammad/auth/sso";
} else {
const token = response.headers.get("CSRF-Token");
update({ zammadCsrfToken: token });
}
}
};