mode_edit codeAPI / @angular/httpXSRFStrategylinkclass 已弃用An XSRFStrategy configures XSRF protection (e.g. via headers) on an HTTP request.弃用说明linksee https://angular.io/guide/httpabstract class XSRFStrategy { abstract configureRequest(req: Request): void }子类link CookieXSRFStrategy 方法linkconfigureRequest() linkmode_edit codeabstract configureRequest(req: Request): void参数reqType: Request.返回值void