check post csrf3

This commit is contained in:
SBD
2024-01-12 16:11:35 +03:00
parent 9a88243323
commit 4ad3813499
2 changed files with 13 additions and 1 deletions

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