Skip to content

fix(chromium): do not modify Origin header across a redirect#41700

Closed
aydinomer00 wants to merge 1 commit into
microsoft:mainfrom
aydinomer00:fix-41690
Closed

fix(chromium): do not modify Origin header across a redirect#41700
aydinomer00 wants to merge 1 commit into
microsoft:mainfrom
aydinomer00:fix-41690

Conversation

@aydinomer00

Copy link
Copy Markdown
Contributor

Summary

  • Continuing a redirected request re-sent the pre-redirect Origin header. Chromium 149+ (BlockOriginHeaderModificationOnRedirect) treats that as a modification and fails the request with net::ERR_INVALID_ARGUMENT, so route.continue() across a cross-origin redirect broke.
  • Drop the Origin from the continued request on the redirect path so the browser keeps the Origin it computed for the redirected request.

Fixes #41690

Continuing a redirected request re-sent the pre-redirect Origin header.
Chromium 149+ (BlockOriginHeaderModificationOnRedirect) treats that as a
modification and fails the request with net::ERR_INVALID_ARGUMENT. Drop the
Origin from the continued request so the browser keeps the Origin it computed
for the redirected request.

Fixes microsoft#41690
@yury-s

yury-s commented Jul 8, 2026

Copy link
Copy Markdown
Member

See #41696

@yury-s yury-s closed this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ERR_INVALID_ARGUMENT on cross-origin redirect with routes enabled in Chromium

2 participants