diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 66c95f4..3b3eb28 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -26,7 +26,7 @@ function select_tab_profile (el,url,owner_type=null) { } $.ajax({ // headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() }, - headers: { "X-CSRFToken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" }, + headers: { "csrfmiddlewaretoken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" }, url: confirm_url, type: "POST", // async: true,