check post csrf4
This commit is contained in:
@@ -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()}` },
|
||||
headers: { "X-CSRFToken": `${getCsrfCookie()}`,"Access-Control-Allow-Origin": "*" },
|
||||
url: confirm_url,
|
||||
type: "POST",
|
||||
// async: true,
|
||||
|
||||
Reference in New Issue
Block a user