From a3ab0973c9c586e7f4f63e66a075dae60b635b7c Mon Sep 17 00:00:00 2001 From: SBD Date: Fri, 12 Jan 2024 15:50:43 +0300 Subject: [PATCH] check post csrf1 --- static/js/filters_functions_find_route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,