diff --git a/static/js/filters_functions_find_route.js b/static/js/filters_functions_find_route.js index b951d8a..d4db710 100644 --- a/static/js/filters_functions_find_route.js +++ b/static/js/filters_functions_find_route.js @@ -58,7 +58,8 @@ function ajax_for_filter (data_d,get_url){ document.querySelector(".container_loader_filters_routes").classList.toggle("show") } $.ajax({ - headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, + // headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, + headers: { "X-CSRFToken": "{{csrf_token}}" }, url: '/routes/find_routes/', type: "POST", // async: true,