-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
referrerPolicy unsafe-url is not being respected #3767
Comments
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? |
Did we backport it? |
@Uzlopak looks like auto-backport failed: #3706 (comment) 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
undici/lib/web/fetch/request.js
Lines 280 to 292 in 02c61d2
The text was updated successfully, but these errors were encountered: