check post csrf4

This commit is contained in:
SBD
2024-01-12 16:16:27 +03:00
parent 4ad3813499
commit 317445998a

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()}` },
headers: { "X-CSRFToken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" },
url: confirm_url,
type: "POST",
// async: true,