Skip to content

Add CORS configuration with allowlist support #58

@Sulex45

Description

@Sulex45

Description:
Replace the open cors() config with a configurable allowlist of allowed origins.
Acceptance Criteria:

ALLOWED_ORIGINS env var accepts comma-separated list of origins
If unset, defaults to * (open) in development, restrictive in production
Returns proper CORS headers for allowed origins
Test added

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programmediumModerate complexity, requires some researchmiddlewareRelated to Express middleware (validation, security, logging)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions