Re:Rails JS frameworks: Ember.js vs. AngularJS
by boucher on Thursday November 06, 2014 @01:17PM
(#8568646)
It's generally pretty easy in most frameworks to plug in to all XHR requests (see e.g. jquery's ajaxPrefilter). Then you can simply add a CSRF token to the header of every request (or possibly your authentication details directly).
[ Parent
| on HN ]
Re:Rails JS frameworks: Ember.js vs. AngularJS
by fervisa on Thursday November 06, 2014 @01:56PM
(#8568922)
The Rails unobtrusive adapter for jQuery jquery-ujs has a pretty neat implementation, you can take a look at it here https://github.com/rails/jquery-ujs/blob/master/src/rails.js...