CSRF prevention

This commit is contained in:
Owen Schwartz 2024-12-25 22:04:20 -05:00
parent 993eab5ac1
commit 4e4b8744b5
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
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"
}
});