CSRF prevention

This commit is contained in:
Owen Schwartz
2024-12-25 22:04:20 -05:00
parent 993eab5ac1
commit 4e4b8744b5
3 changed files with 43 additions and 8 deletions

View File

@@ -32,7 +32,8 @@ export function createApiClient({ env }: { env: env }): AxiosInstance {
baseURL,
timeout: 10000,
headers: {
"Content-Type": "application/json"
"Content-Type": "application/json",
"X-CSRF-Token": "x-csrf-protection"
}
});