3 ms·
About the Angular portion of CSRF integration - one can do this in other ways without disabling the check. One can create a factory that acts as the http inter
by Bahamut 12y ago
About the Angular portion of CSRF integration - one can do this in other ways without disabling the check. One can create a factory that acts as the http interceptor that has the csrf injected. One can also manually crawl the DOM by using document.querySelector and inject the value into the http interceptor for appending to requests. One can also use an http request to fetch the token and have the token served via the xhr and manually bootstrap the app.
Angular is relatively unopinionated here.
- fervisa 12y agoIn fact, the article mentions in 6.2.2 one client-side solution to handle CSRF token by including it into the $httpProvider's headers.