MCPcopy
hub / github.com/angular/angular / HttpXsrfInterceptor

Class HttpXsrfInterceptor

packages/common/http/src/xsrf.ts:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 */
132@Injectable()
133export class HttpXsrfInterceptor implements HttpInterceptor {
134 private readonly injector = inject(EnvironmentInjector);
135
136 intercept(initialRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
137 return runInInjectionContext(this.injector, () =>
138 xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)),
139 );
140 }
141}

Callers

nothing calls this directly

Calls 1

injectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…