client/web: pipe unraid csrf token through apiFetch

Ensures that we're sending back the csrf token for all requests
made back to unraid clients.

Updates tailscale/corp#13775

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:
Sonia Appasamy
2023-08-29 18:02:01 -04:00
committed by Sonia Appasamy
parent 1cd03bc0a1
commit e952564b59
3 changed files with 38 additions and 34 deletions

View File

@@ -93,7 +93,7 @@ export function Header({
|{" "}
<button
onClick={() =>
apiFetch("/local/v0/logout", { method: "POST" })
apiFetch("/local/v0/logout", "POST")
.then(refreshData)
.catch((err) => alert("Logout failed: " + err.message))
}