While the site loads smoothly through the browser,but when i send a POST request via postman or a REST API client, i am getting a csrf error.
"CSRF cookie not set."
IS THERE A WAY TO SEND A REQUEST SKIPPING CSRF?
While the site loads smoothly through the browser,but when i send a POST request via postman or a REST API client, i am getting a csrf error.
"CSRF cookie not set."
IS THERE A WAY TO SEND A REQUEST SKIPPING CSRF?
You need to use csrf_exempt decorator on your view : this will disable the check of the csrf token
https://docs.djangoproject.com/en/2.0/ref/csrf/#django.views.decorators.csrf.csrf_exempt