check post csrf5

This commit is contained in:
SBD
2024-01-12 16:21:11 +03:00
parent 317445998a
commit 61b2b824d5

View File

@@ -26,7 +26,7 @@ function select_tab_profile (el,url,owner_type=null) {
}
$.ajax({
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
headers: { "X-CSRFToken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" },
headers: { "csrfmiddlewaretoken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" },
url: confirm_url,
type: "POST",
// async: true,