Answer the question
In order to leave comments, you need to log in
Django + Angular not setting token?
Good day. I uploaded the project to the hosting, but when submitting forms, the CSRF-Token is not installed.
the following is written in the angular .config
.config(['$httpProvider', '$interpolateProvider',function($httpProvider, $interpolateProvider) {
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
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