News for hackers. Stuff that matters.
Re:Rails JS frameworks: Ember.js vs. AngularJS by Bahamut on Thursday November 06, 2014 @11:30AM (#8567804)
About the Angular portion of CSRF integration - one can do this in other ways without disabling the check. One can create a factory that acts as the http interceptor that has the csrf injected. One can also manually crawl the DOM by using document.querySelector and inject the value into the http interceptor for appending to requests. One can also use an http request to fetch the token and have the token served via the xhr and manually bootstrap the app.

Angular is relatively unopinionated here.

Re:Rails JS frameworks: Ember.js vs. AngularJS by fervisa on Thursday November 06, 2014 @11:38AM (#8567863)
In fact, the article mentions in 6.2.2 one client-side solution to handle CSRF token by including it into the $httpProvider's headers.