mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-12 02:53:38 +00:00
fix:face_capature_create_token
This commit is contained in:
@@ -39,7 +39,11 @@
|
||||
let token;
|
||||
|
||||
function createFaceCaptureToken() {
|
||||
const csrf = getCookie('jms_csrftoken');
|
||||
let prefix = getCookie('SESSION_COOKIE_NAME_PREFIX');
|
||||
if (!prefix || [`""`, `''`].includes(prefix)) {
|
||||
prefix = '';
|
||||
}
|
||||
const csrf = getCookie(`${prefix}csrftoken`);
|
||||
$.ajax({
|
||||
url: apiUrl,
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user