Open aldenquimby opened 2 hours ago
I have the feeling I worked on this like 2 weeks ago. Yes the referrerPolicy is not well tested.
@Uzlopak might it be this is fixed on v7.0.0-alpha.3?
@Uzlopak @mcollina I just tried with v7.0.0-alpha.3
locally, and it looks like it's working now! So I assume #3706 fixed this?
Did we backport it?
@Uzlopak looks like auto-backport failed: https://github.com/nodejs/undici/pull/3706#issuecomment-2404907827
I don't see it in https://github.com/nodejs/undici/releases/tag/v6.20.1 so I assume no one has done the manual backport yet
We should add in your test case since our tests did not catch the bug nor the fix.
Bug Description
referrerPolicy unsafe-url is not being respected
Reproducible By
referer: https://google.com/
(path is removed)Expected Behavior
referer: https://google.com/hello/world
Environment
MacOS 14.7, Node v20
Additional context
determineRequestsReferrer
looks good, which suggests something else is modifyingreferrer