CookieXSRFStrategy

CookieXSRFStrategy

Experimental Class

Class Overview

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

Class Description

XSRFConfiguration sets up Cross Site Request Forgery (XSRF) protection for the application using a cookie. See https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(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) : void

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

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/http/index/CookieXSRFStrategy-class.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部