1
votes

I'm currently trying to create a small web app with Angular 2 as my front end and Rails 4 as my backend - my backend is just an API while my front-end is just sending out requests.

I ran into CSRF token authenticity errors today when trying to submit a post request - how do I add these CSRF headers into my Angular 2 headers?

1
What code did produce the error, what's the exact error message?Günter Zöchbauer
There's a PR for it: github.com/angular/angular/pull/8898VahidN

1 Answers