angular-sails
angular-sails copied to clipboard
Feature request - Auto CSRF Token
Hi there,
Does the library has a built-in CSRF setting to enable ?
If not it would be nice to implement it so we don't need to manually ask for a CSRF token at yourapp.com/csrfToken when CSRF protection is enabled on the sails App.
Thanks.
Sorry I didn't comment on this earlier. This request is more or less out of scope of what the 1.x project is. Since 2.x tries to line up with angular's $http and angular's $http has some XSRF features, I'd imagine that this would be in scope for 2.x.
Good to know !
Thanks
Any news on this ?
I automated this on an interceptor: https://git.snell.com.mx/ecorona/sailsjs-boilerplate/tree/master/assets/js/app/interceptor.js