angular/packages/common/http
Doug Parker 8102331f82 test(http): disable XSRF and mock location in HttpClient tests to avoid Domino failures and state leakage
The `HttpClient` tests in `client_spec.ts` were failing intermittently in Node/Domino environment because `MockPlatformLocation` defaults to `http://_empty_/`. This valid URL satisfied the URL parser in `xsrfInterceptorFn`, causing it to proceed to cookie extraction which throws `NotYetImplemented` in Domino.

To fix this:
1. Disabled XSRF protection in `client_spec.ts` using `withNoXsrfProtection()`, as these tests are not for XSRF.
2. Provided `ɵprovideFakePlatformNavigation` to remove state leakage effects and ensure consistency.

(cherry picked from commit 1ef503e18e)
2026-04-06 18:05:58 +00:00
..
src Revert "refactor(http): Improves base64 encoding/decoding with feature detection (#67002)" 2026-03-04 17:19:14 +00:00
test test(http): disable XSRF and mock location in HttpClient tests to avoid Domino failures and state leakage 2026-04-06 18:05:58 +00:00
testing test(http): refactors HTTP client tests to use TestBed and providers 2026-03-03 17:12:39 +00:00
BUILD.bazel build: rename defaults2.bzl to defaults.bzl (#63383) 2025-08-25 15:45:01 -07:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
PACKAGE.md build: format md files 2025-11-06 10:03:05 -08:00
public_api.ts feat(http): Provide http services in root (#56212) 2025-08-14 13:04:35 +02:00