janpantel / angular-sails

An angular module for using the sails socket.io api
MIT License
307 stars 56 forks source link

Feature request - Auto CSRF Token #76

Open Fr33maan opened 9 years ago

Fr33maan commented 9 years ago

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.

TheSharpieOne commented 9 years ago

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.

Fr33maan commented 9 years ago

Good to know !

Thanks

Fr33maan commented 8 years ago

Any news on this ?

ecorona commented 5 years ago

I automated this on an interceptor: https://git.snell.com.mx/ecorona/sailsjs-boilerplate/tree/master/assets/js/app/interceptor.js