-
Notifications
You must be signed in to change notification settings - Fork 36
Feature: Add CORS configuration documentation and validation #82
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapiREST API componentREST API componenteasyDifficulty: EasyDifficulty: EasyenhancementNew feature or requestNew feature or request
Description
Problem
CORS is enabled via cors() in api/src/app.ts with default settings (allows all origins). No documentation on how to restrict origins for production.
Context
Allowing all origins in production is a security risk. Production should only allow specific frontend domains.
Proposed Solution
- Make CORS origins configurable via env var
- Default to restrictive in production
- Document CORS configuration in README
Acceptance Criteria
- CORS origins configurable via
ALLOWED_ORIGINSenv var - Default: allow all in development, restrict in production
- Documentation updated
- Tests verify CORS headers
Technical Notes
- File:
api/src/app.ts(CORS setup)
Constraints
- Must support multiple origins (comma-separated list)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programapiREST API componentREST API componenteasyDifficulty: EasyDifficulty: EasyenhancementNew feature or requestNew feature or request