Skip to content

fix: validate request origins for built-in dev server actions - #278

Merged
chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-dev-server-action-origins
Nov 28, 2026
Merged

chenjiahan merged 3 commits into
mainfrom
chenjiahan/fix-dev-server-action-origins

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

A page on another origin could trigger the dev server to open a file in the editor or start a rebuild. Both routes now check Sec-Fetch-Site. When it is absent, they check Origin or, for requests that omit Origin, the origin of the Referer URL.

Requests without any of these headers receive a 403. Scripts that call either route can send the dev server’s origin in the standard Origin header.

Related Links

Upstream fix in webpack-dev-server

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T09:43:53.727527Z 2f6ce77 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit 4c841ae into main Nov 28, 2026
3 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-dev-server-action-origins branch November 28, 2026 08:04
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.

1 participant