Skip to content

[Backport 20.3.X] fix(service-worker): Strips sensitive headers on cross-origin redirects#69230

Open
SkyZeroZx wants to merge 1 commit into
angular:20.3.xfrom
SkyZeroZx:backport-69029-to-20.3.x
Open

[Backport 20.3.X] fix(service-worker): Strips sensitive headers on cross-origin redirects#69230
SkyZeroZx wants to merge 1 commit into
angular:20.3.xfrom
SkyZeroZx:backport-69029-to-20.3.x

Conversation

@SkyZeroZx
Copy link
Copy Markdown
Contributor

Backport of #69029

Removes `Authorization`, `Cookie`, and `Proxy-Authorization` headers when a request is redirected to a different origin. This aligns with the Fetch API's redirect algorithm to prevent sensitive information from being sent to third-party origins.

(cherry picked from commit 423a109)
@pullapprove pullapprove Bot requested a review from atscott June 8, 2026 14:33
@angular-robot angular-robot Bot added the area: service-worker Issues related to the @angular/service-worker package label Jun 8, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 8, 2026
@JeanMeche JeanMeche removed the request for review from atscott June 8, 2026 14:51
@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 Jun 8, 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: service-worker Issues related to the @angular/service-worker package 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