mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #361] Dev-origin / allowedDevOrigins protection blocks cross-origin requests in production Cloudflare Worker deployments #81
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sindhukhrisna on GitHub (Mar 9, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/361
Environment
Problem Statement
When deploying a vinext app to Cloudflare Workers (production, not dev), all cross-origin requests from the production domain (e.g., from
https://example.comtohttps://auth.example.com/api/auth/get-session) are blocked, with the server responding:allowedDevOriginsdoes not resolve or make sense for production environments.Expected Behavior
allowedDevOrigins,__validateDevRequestOrigin) to production builds/workers.experimental.serverActions.allowedOrigins, not the dev-origin surface.allowedDevOriginsshould be shown/required.Actual Behavior
__validateDevRequestOriginruns in the deployed Worker, causing valid same-origin production requests to be blocked.allowedDevOrigins, which is a dev-only config.Steps to Reproduce
https://auth.example.com/api/auth/get-session).Notes
__validateDevRequestOrigin) is included in the Worker entry but should not run in production.