CookieXSRFStrategy

Experimental Class

Class Overview

class CookieXSRFStrategy {
  constructor(_cookieName?: string, _headerName?: string)
  
  
  configureRequest(req: Request)
}

Class Description

XSRFConfiguration sets up Cross Site Request Forgery (XSRF) protection for the application using a cookie. See Cross-Site_RequestForgery(CSRF) for more information on XSRF.

Applications can configure custom cookie and header names by binding an instance of this class with different cookieName and headerName values. See the main HTTP documentation for more details.

Constructor

constructor(_cookieName?: string, _headerName?: string)

Class Details

configureRequest(req: Request)

exported from @angular/http/index, defined in @angular/http/src/backends/xhr_backend.ts

doc_Angular
2016-10-06 09:46:23
Comments
Leave a Comment

Please login to continue.