yes ken. csrf token is passed as X-CSRFToken. But the django csrf middleware checks for token using request.META.get('CSRF_COOKIE') under “process_view” function of middleware/csrf.py . since there is no key named “CSRF_COOKIE” in the request it is raising cookie not set error.
why is it so?
