Skip to content

CORS Configuration for Mobile and External Clients #203

@Baskarayelu

Description

@Baskarayelu

Description:

Configure CORS so that approved origins (e.g. web app, future mobile app, partner dashboards) can call the API while blocking others.

Requirements

  • Allow list from env: ALLOWED_ORIGINS (comma-separated) e.g. https://app.remitwise.com, http://localhost:3000
  • In middleware or route: set Access-Control-Allow-Origin to request origin if in list; else do not set (or set to false)
  • For preflight OPTIONS, return 204 with allowed methods and headers
  • Document ALLOWED_ORIGINS and security implications
  • Do not use * in production for credentials

Acceptance Criteria

  • CORS allow list from env
  • Preflight handled
  • Documented

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions