This is the archived documentation for Angular v5. Please visit angular.io to see documentation for the current version of Angular.

XSRFStrategy

npm Package @angular/http
Module import { XSRFStrategy } from '@angular/http';
Source http/src/interfaces.ts

Deprecation Notes

use @angular/common/http instead

Overview

      
      class XSRFStrategy {
  configureRequest(req: Request): void
}
    

Description

An XSRFStrategy configures XSRF protection (e.g. via headers) on an HTTP request.

Subclasses

Members

      
      configureRequest(req: Request): void