Skip to content

Commit

Permalink
fix(console): add csrf token to tchart (#2211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-hnny committed Dec 13, 2022
1 parent c8d4613 commit 966b72e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/console/tencent/tchart/src/tce/request.ts
@@ -1,3 +1,5 @@
import { createCSRFHeader } from '@helper'

export async function apiRequest({ data }) {
let res;
// 融合版的tke 监控,使用influxdb
Expand Down Expand Up @@ -34,6 +36,7 @@ export async function apiRequest({ data }) {
credentials: "same-origin",
headers: {
"Content-Type": "application/json",
...createCSRFHeader(),
...projectHeader,
},
redirect: "follow",
Expand Down

0 comments on commit 966b72e

Please sign in to comment.