check post csrf2
This commit is contained in:
@@ -59,7 +59,7 @@ function ajax_for_filter (data_d,get_url){
|
|||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
headers: { "X-CSRFToken": "{{csrf_token}}" },
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
url: '/routes/find_routes/',
|
url: '/routes/find_routes/',
|
||||||
type: "POST",
|
type: "POST",
|
||||||
// async: true,
|
// async: true,
|
||||||
|
|||||||
@@ -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%;"/>'
|
document.querySelector(".info_profile").innerHTML = '<img src="/static/img/svg/loader.svg" style="height: 30px;position: absolute;top: 47%;left: 45%;"/>'
|
||||||
}
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
|
headers: { "X-CSRFToken": "{{csrf_token}}" },
|
||||||
url: confirm_url,
|
url: confirm_url,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
// async: true,
|
// async: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user