DRF Forbidden (CSRF cookie not set.) from React axios POST request
As we know, we don’t have access to Django CSRFToken
in React by default, So we have to get it somehow.
The solution was make a URL for receive CSRFToken
in Response-Headers
and set csrftoken
cookie in browser. So I did it =>