check post csrf7

This commit is contained in:
SBD
2024-01-12 16:32:00 +03:00
parent 615922a881
commit 231d062814

View File

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