check post csrf6

This commit is contained in:
SBD
2024-01-12 16:28:49 +03:00
parent 61b2b824d5
commit 615922a881

View File

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