Skip to content

cors_allowed_origins should default to restrictive in prod mode #7640

Closed

Description

@masenf

Describe the bug
cors_allowed_origins defaults to ["*"] in reflex, which allows any site to directly connect to the reflex backend; while this is a public endpoint, it should only allow access from the configured deploy_url or explicit cors_allowed_origins in prod mode to restrict access to only expected frontends.

This will be a breaking change, since existing apps do not need to set any special configuration today.

Activity

  1. added
    breaking
    on Oct 22, 2026
  2. added theissue type on Oct 22, 2026
  3. linear-code commented on Oct 22, 2026

    @linear-code
  4. added a commit that references this issue on Oct 28, 2026
    23a7821
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

breakingsecurity

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions