MCPcopy Index your code
hub / github.com/angular/angular / withOptions

Method withOptions

packages/common/http/src/module.ts:74–84  ·  view source on GitHub ↗

* Configure XSRF protection. * @param options An object that can specify either or both * cookie name or header name. * - Cookie name default is `XSRF-TOKEN`. * - Header name default is `X-XSRF-TOKEN`. *

(
    options: {
      cookieName?: string;
      headerName?: string;
    } = {},
  )

Source from the content-addressed store, hash-verified

72 *
73 */
74 static withOptions(
75 options: {
76 cookieName?: string;
77 headerName?: string;
78 } = {},
79 ): ModuleWithProviders<HttpClientXsrfModule> {
80 return {
81 ngModule: HttpClientXsrfModule,
82 providers: withXsrfConfiguration(options).ɵproviders,
83 };
84 }
85}
86
87/**

Callers

nothing calls this directly

Calls 1

withXsrfConfigurationFunction · 0.90

Tested by

no test coverage detected