Require same-origin stream commands#1355
Merged
Merged
Conversation
Protect the per-session command relay from browser-originated cross-origin requests while preserving same-origin dashboard access. Co-authored-by: Muhtasham <20128202+Muhtasham@users.noreply.github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Require command relay requests to come from loopback same-origin metadata and prevent request bodies from spoofing security headers. Co-authored-by: Muhtasham <20128202+Muhtasham@users.noreply.github.com>
Karen86Tonoyan
added a commit
to Karen86Tonoyan/agent-browser
that referenced
this pull request
May 19, 2026
Require same-origin stream commands (vercel-labs#1355)
leeguooooo
pushed a commit
to leeguooooo/chrome-use
that referenced
this pull request
Jun 1, 2026
* Require same-origin stream commands Protect the per-session command relay from browser-originated cross-origin requests while preserving same-origin dashboard access. Co-authored-by: Muhtasham <20128202+Muhtasham@users.noreply.github.com> * Harden stream command origin checks Require command relay requests to come from loopback same-origin metadata and prevent request bodies from spoofing security headers. Co-authored-by: Muhtasham <20128202+Muhtasham@users.noreply.github.com> --------- Co-authored-by: Muhtasham <20128202+Muhtasham@users.noreply.github.com>
leeguooooo
added a commit
to leeguooooo/chrome-use
that referenced
this pull request
Jun 1, 2026
Upstream cherry-picks (onto v0.27.0 base): - security: same-origin stream command relay (vercel-labs#1355) - feat: hide scrollbars in headless screenshots (vercel-labs#1396) - chore: pnpm minimum release age + node pinning (vercel-labs#1377, fork-adapted) Fork fixes: - fix(connect): stop remote-debugging consent storm — is_connection_alive no longer tears down an externally-attached browser on a transient liveness timeout (was an endless prompt loop / browser freeze) - fix(connect): single consenting WebSocket — drop the throwaway verify probe so the user's one "Allow remote debugging?" click sticks to the real connection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OriginorReferermetadata before the per-session stream server relaysPOST /api/commandto the daemon./api/commandresponses while preserving same-origin dashboard command access.Fixes #1344