fix:face_capature_create_token

This commit is contained in:
lory
2026-07-03 11:45:52 +08:00
committed by 老广
parent e6526e77a6
commit 74c9319d5c

View File

@@ -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',