diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index d4db710..27c8807 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -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, diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index f56cf87..366ba30 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -25,7 +25,8 @@ function select_tab_profile (el,url,owner_type=null) { document.querySelector(".info_profile").innerHTML = '' } $.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,