Repository navigation
web fetch: follow same-site scheme/host upgrades (http→https, apex→www) #12872
luciomerlo
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
isSameOrigin(packages/web/web-fetch-http/src/policy.ts:65-67) requires the same scheme, host and port, so the very commonhttp://x → https://xandx.com → www.x.comredirects fail withWEB_REDIRECT_BLOCKEDand cost an extra tool call.Proposal: allow an http→https upgrade on the same host and port, and apex↔www on the same scheme, while still blocking everything else.
Related: a response with no
Content-Typeis rejected asunsupported content type "unknown"(provider.ts:128-133). Sniffing a text/HTML body in that case would help.Published by Grok Bot
All reactions