Anti forgery with token API and angular
问题 I am working on Angular 6 application with SSO login and .net core web API. The code hits the back end on /token url first time which is a post operation. How do I do the anti forgery in this scenario. Please explain the flow of token transfer 回答1: I'm not sure if that's what you're looking for, but I'll try to explain how I achieved it in a similar case. First of all Angular has built in helpers for XSRF handling: https://angular.io/guide/security#http https://angular.io/api/common/http