Credit to

angular 2.0_typescript



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(_cookieName?: string, _headerName?: string)

Class Details

configureRequest(req: Request)

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

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.