1👍
If you use it this way:
$.ajax({
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader("X-CSRFToken", {{ csrf_token }});
},
...
Does it work?
Source:stackexchange.com
1👍
If you use it this way:
$.ajax({
type: 'POST',
beforeSend: function(xhr) {
xhr.setRequestHeader("X-CSRFToken", {{ csrf_token }});
},
...
Does it work?