Answer the question
In order to leave comments, you need to log in
Angularjs + Django REST Framework - how to pass CSRF?
For educational purposes, I am writing a web application in conjunction with AngularJS + Django using the REST Framework. Quite new to Django and Python.
The frontend and backend are running on the local machine on different ports.
When I try to log in as superuser through an AngularJS form, I get a 403 response, the essence of which is:
CSRF cookie not set.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question