Update csrf value to use value if present in context, then fall back to cookie.
Updated database samples. Added migrations for sample project models. Updated Category model to make order not editable.
This commit is contained in:
1 parent
f4daaeb232
commit
d4f577fdf9
5 files changed
+237
-2
No files matched your search
@@ -16,7 +16,7 @@
|
||||
return cookieValue;
|
||||
}
|
||||
|
||||
var csrftoken = getCookie('{{ csrf_cookie_name }}');
|
||||
var csrftoken = '{{ csrf_token }}' || getCookie('{{ csrf_cookie_name }}');
|
||||
|
||||
function csrfSafeMethod(method) {
|
||||
// these HTTP methods do not require CSRF protection
|
||||
|
||||
Reference in new issue
Block a user