janpantel / angular-sails

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

How to setup _csrf for post/get/put event? #90

Open Zenuncl opened 8 years ago

Zenuncl commented 8 years ago

is there any way to setup csrf for it if my sails.js are using csrf??

ecorona commented 5 years ago

Use an interceptor. Here is mine: https://git.snell.com.mx/ecorona/sailsjs-boilerplate/tree/master/assets/js/app/interceptor.js