Skip to content

fix(chromium): disable BlockOriginHeaderModificationOnRedirect#41696

Merged
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-41690
Jul 8, 2026
Merged

fix(chromium): disable BlockOriginHeaderModificationOnRedirect#41696
yury-s merged 1 commit into
microsoft:mainfrom
yury-s:fix-41690

Conversation

@yury-s

@yury-s yury-s commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Chromium 149 rejects re-applying the origin header on a redirect (which request interception does) with net::ERR_INVALID_ARGUMENT, breaking cross-origin redirects when page.route is enabled.
  • Disable the BlockOriginHeaderModificationOnRedirect feature via --disable-features, letting the network stack own the origin header across redirects.

Fixes #41690

Chromium 149 rejects re-applying the `origin` header on a redirect (as
request interception does) with net::ERR_INVALID_ARGUMENT, breaking
cross-origin redirects when routes are enabled.

Fixes microsoft#41690
@yury-s yury-s requested review from dgozman and pavelfeldman July 8, 2026 17:55
@yury-s yury-s merged commit 6a9bd5a into microsoft:main Jul 8, 2026
44 of 46 checks passed
@yury-s yury-s deleted the fix-41690 branch July 8, 2026 18:20
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

5 flaky ⚠️ [chromium-library] › library/browsercontext-page-event.spec.ts:173 › should work with Ctrl-clicking `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:645 › screencast › should capture full viewport `@realtime-time-library-chromium-linux`
⚠️ [chromium-library] › library/video.spec.ts:476 › screencast › should capture static page in persistent context @smoke `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/beforeunload.spec.ts:130 › should support dismissing the dialog multiple times `@chromium-ubuntu-22.04-node22`
⚠️ [chromium-library] › library/chromium/oopif.spec.ts:282 › should click `@chromium-ubuntu-22.04-node22`

49510 passed, 1162 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

1 failed
❌ [firefox] › mcp/cli-killall.spec.ts:42 › kill-all kills filtered dashboard pid @mcp-ubuntu-latest-firefox

7721 passed, 1248 skipped


Merge workflow run.

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