HttpClientXsrfModule
配置 XSRF 保护,以支持外发请求。
Configures XSRF protection support for outgoing requests.
      
      class HttpClientXsrfModule {
  static disable(): ModuleWithProviders<HttpClientXsrfModule>
  static withOptions(options: { cookieName?: string; headerName?: string; } = {}): ModuleWithProviders<HttpClientXsrfModule>
}
    说明
对于支持基于 Cookie 的 XSRF 保护系统的服务器来说,只要配置上正确的 Cookie 名和请求头的名字,就可以自动获得 XSRF 保护。
For a server that supports a cookie-based XSRF protection system, use directly to configure XSRF protection with the correct cookie and header names.
如果没有提供名字,则默认的 Cookie 名是 XSRF-TOKEN,默认的请求头名字是 X-XSRF-TOKEN。
If no names are supplied, the default cookie name is XSRF-TOKEN and the default header name is X-XSRF-TOKEN.
静态方法
| 禁用默认的 XSRF 保护。 Disable the default XSRF protection. | 
| 配置 XSRF 保护。 Configure XSRF protection. | 
|       
      参数返回值 | 
提供商
| 提供商 | 
|---|
|       
       | 
|       
       | 
|       
       | 
|       
       | 
|       
       | 
