Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information