mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-14 20:16:38 +00:00
Add csrf to auth
This commit is contained in:
@@ -156,7 +156,8 @@ export class TokenManager {
|
|||||||
async getAuthHeader() {
|
async getAuthHeader() {
|
||||||
return {
|
return {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${await this.getToken()}`
|
Authorization: `Bearer ${await this.getToken()}`,
|
||||||
|
"X-CSRF-Token": "x-csrf-protection",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user