angular/packages/common/http
Alex Rickabaugh ea16a98dfe fix(http): better handle unexpected undefined XSRF tokens (#47683)
`HttpXsrfTokenExtractor` allows returning `string|null` for an XSRF token,
and the interceptor checked if the returned token is `null`. However, some
implementations return `undefined` instead (behind an `any`) type, which
caused the interceptor to crash when trying to set an `undefined` value for
the header.

This commit makes the XSRF interceptor a little more resilient against such
broken implementations of the `HttpXsrfTokenExtractor` interface.

PR Close #47683
2022-10-06 16:41:06 -07:00
..
src fix(http): better handle unexpected undefined XSRF tokens (#47683) 2022-10-06 16:41:06 -07:00
test feat(http): allow for child HttpClients to request via parents (#47502) 2022-10-06 19:02:46 +00:00
testing feat(http): introduce provideHttpClientTesting provider function (#47502) 2022-10-06 19:02:45 +00:00
BUILD.bazel build: turn off dts bundling for packages that still are not supported (#29128) 2019-03-07 10:47:20 -08:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
PACKAGE.md docs: add package doc files (#26047) 2018-10-05 15:42:14 -07:00
public_api.ts feat(http): allow for child HttpClients to request via parents (#47502) 2022-10-06 19:02:46 +00:00