diff --git a/frontend/pc/src/utils/ajax.js b/frontend/pc/src/utils/ajax.js index a647b5a6c..0d45e99e5 100644 --- a/frontend/pc/src/utils/ajax.js +++ b/frontend/pc/src/utils/ajax.js @@ -33,7 +33,7 @@ const instance = axios.create({ // `headers` are custom headers to be sent headers: { 'X-Requested-With': 'XMLHttpRequest' }, // csrftoken变量名 - xsrfCookieName: `${window.BKAPP_CSRF_COOKIE_NAME}_csrftoken`, + xsrfCookieName: window.BKAPP_CSRF_COOKIE_NAME, // cookie中的csrftoken信息名称 xsrfHeaderName: 'X-CSRFToken', withCredentials: true, diff --git a/frontend/pc/src/views/processManagement/apiConfigure/apiTable.vue b/frontend/pc/src/views/processManagement/apiConfigure/apiTable.vue index bb173c98a..af5f34151 100644 --- a/frontend/pc/src/views/processManagement/apiConfigure/apiTable.vue +++ b/frontend/pc/src/views/processManagement/apiConfigure/apiTable.vue @@ -36,8 +36,8 @@