check post csrf2

This commit is contained in:
SBD
2024-01-12 15:58:34 +03:00
parent a05c4b3898
commit df0f32c71a
2 changed files with 3 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ function ajax_for_filter (data_d,get_url){
}
$.ajax({
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
headers: { "X-CSRFToken": "{{csrf_token}}" },
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/routes/find_routes/',
type: "POST",
// async: true,

View File

@@ -25,7 +25,8 @@ function select_tab_profile (el,url,owner_type=null) {
document.querySelector(".info_profile").innerHTML = '<img src="/static/img/svg/loader.svg" style="height: 30px;position: absolute;top: 47%;left: 45%;"/>'
}
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
headers: { "X-CSRFToken": "{{csrf_token}}" },
url: confirm_url,
type: "POST",
// async: true,