Skip to content

[Backport 20.3.x] fix(http): preserve empty referrer option in HttpRequest#69192

Open
SkyZeroZx wants to merge 1 commit into
angular:20.3.xfrom
SkyZeroZx:backporting-69171-20.3.x
Open

[Backport 20.3.x] fix(http): preserve empty referrer option in HttpRequest#69192
SkyZeroZx wants to merge 1 commit into
angular:20.3.xfrom
SkyZeroZx:backporting-69171-20.3.x

Conversation

@SkyZeroZx
Copy link
Copy Markdown
Contributor

Backport of #69171

@pullapprove pullapprove Bot requested a review from atscott June 5, 2026 14:51
@SkyZeroZx SkyZeroZx changed the title fix(http): preserve empty referrer option in HttpRequest [Backport 20.3.x] fix(http): preserve empty referrer option in HttpRequest Jun 5, 2026
@angular-robot angular-robot Bot added the area: common/http Issues related to HTTP and HTTP Client label Jun 5, 2026
@ngbot ngbot Bot added this to the Backlog milestone Jun 5, 2026
Preserve referrer: '' when constructing and cloning HttpRequest.

An empty string is a valid Fetch referrer value and is documented by

Angular as the way to omit referrer information for sensitive requests.

The previous truthy checks treated it as if the option was not provided,

causing requests to fall back to the browser default referrer behavior.

(cherry picked from commit 1e54b8f)
@SkyZeroZx SkyZeroZx force-pushed the backporting-69171-20.3.x branch from 1caf27c to 180fa00 Compare June 5, 2026 14:52
@JeanMeche JeanMeche removed the request for review from atscott June 5, 2026 22:43
@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 5, 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