If any user disabled cookies then csrf verification will fail. How to set up csrf at this time? I am using Django traditional form submission instead of Ajax. And I already included {% csrf_token %} inside the Django form. For testing purposes, I disabled all the cookies. So without cookies, how to set up csrf and submit the form?
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
....
]
<form action="{% url 'home' %}" method="POST" id="my-form">
<input type="text" name="fname" >
{% csrf_token %}
<button type="submit">Submit</button>
</form>