How to append CSRF token in Angular 4+ post method in proper way
I try to fetch and append the csrf token form Django REST service. As per docs. in the angular.io i'm applied the code but its not working. It shown error message like "credentials are not provides"
Anything that uses @angular/common/http is Angular 5. Angular didn't introduce interceptors until version 5, so your problem might be that you are a version behind.
Matt Strom
Software Engineer, TypeScript ninja
Anything that uses
@angular/common/httpis Angular 5. Angular didn't introduce interceptors until version 5, so your problem might be that you are a version behind.