From 615922a8813bb9f88686adb533be90729d28c7d5 Mon Sep 17 00:00:00 2001 From: SBD Date: Fri, 12 Jan 2024 16:28:49 +0300 Subject: [PATCH] check post csrf6 --- static/js/user_profile_2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 3b3eb28..f814836 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -26,7 +26,7 @@ function select_tab_profile (el,url,owner_type=null) { } $.ajax({ // headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, - headers: { "csrfmiddlewaretoken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" }, + headers: { "X-CSRF-TOKEN": `${getCsrfCookie()}` }, url: confirm_url, type: "POST", // async: true,