Skip to content

[Backport 21.2.X] fix(http): enable xsrf for root-provided HttpClient#69896

Open
SkyZeroZx wants to merge 2 commits into
angular:21.2.xfrom
SkyZeroZx:backport-69823-to-21.2.x
Open

[Backport 21.2.X] fix(http): enable xsrf for root-provided HttpClient#69896
SkyZeroZx wants to merge 2 commits into
angular:21.2.xfrom
SkyZeroZx:backport-69823-to-21.2.x

Conversation

@SkyZeroZx

Copy link
Copy Markdown
Contributor

Backport of #69823

Include the XSRF interceptor in the root token factory so the automatically provided HttpClient retains the documented default protection without requiring provideHttpClient().

Update test for the root-only provider graph and verify that withNoXsrfProtection() still disables the default header.
@pullapprove
pullapprove Bot requested a review from kirjs July 22, 2026 19:00
@angular-robot angular-robot Bot added the area: common/http Issues related to HTTP and HTTP Client label Jul 22, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jul 22, 2026
@JeanMeche
JeanMeche requested review from JeanMeche and removed request for kirjs July 22, 2026 20:59
@JeanMeche JeanMeche added action: merge The PR is ready for merge by the caretaker target: lts This PR is targeting a version currently in long-term support labels Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: common/http Issues related to HTTP and HTTP Client target: lts This PR is targeting a version currently in long-term support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants