mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-22 13:07:26 +00:00
fix: 修改csrftoken获取问题
This commit is contained in:
parent
c3de7b78c2
commit
a6d61721dd
@ -125,7 +125,8 @@ function csrfSafeMethod(method) {
|
||||
}
|
||||
|
||||
function setAjaxCSRFToken() {
|
||||
const prefix = getCookie('SESSION_COOKIE_NAME_PREFIX', '')
|
||||
let prefix = getCookie('SESSION_COOKIE_NAME_PREFIX');
|
||||
if (!prefix || [`""`, `''`].indexOf(prefix) > -1) { prefix = ''; }
|
||||
var csrftoken = getCookie(`${prefix}csrftoken`);
|
||||
var sessionid = getCookie(`${prefix}sessionid`);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user