Skip to content

Commit

Permalink
refactor: csrftoken取值名称修改 --story=119946365
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 19906
  • Loading branch information
luofann committed Oct 8, 2024
1 parent 43aa80f commit e74be9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/pc/src/utils/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e74be9a

Please sign in to comment.