I have included {% csrf_token %}
in my HTML form(which includes textboxes and some checkboxes) in Django still I get Forbidden (CSRF token missing or incorrect.)
error because of processData:false
in AJAX.
If I try removing processData:false
from AJAX the form only keeps loading without any result. In browser console I get the following error:Uncaught TypeError: Illegal invocation
.
How do I fix this?