mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-28 13:48:13 +02:00
CSRF prevention
This commit is contained in:
parent
993eab5ac1
commit
4e4b8744b5
3 changed files with 43 additions and 8 deletions
|
@ -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"
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue