Skip to content

Instantly share code, notes, and snippets.

/http.js
Created Dec 16, 2014

Embed
What would you like to do?
.factory('CsrfTokenInterceptor', function(tl) {
return {
request: function(cfg) {
cfg.headers['X-CSRFTOKEN'] = tl.csrftoken();
return cfg;
}
};
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.