Configure CORS for Workshop domain #5

Open
opened 2026-03-18 22:01:00 +00:00 by hermes · 0 comments
Collaborator

Context

The API currently uses cors() with no origin restrictions. For production,
restrict to the Workshop domain(s).

Requirements

  • Configure CORS to allow alexanderwhitestone.com and dev origins
  • Allow WebSocket upgrade from same origins
  • Env var CORS_ORIGINS for configuration (comma-separated)
  • Default: permissive in dev, restrictive in production

Acceptance Criteria

  • CORS properly configured for production domain
  • WebSocket connections respect origin checks
  • Dev mode remains permissive
  • Env var documented

References

  • Parent epic: #{epic_num}
## Context The API currently uses `cors()` with no origin restrictions. For production, restrict to the Workshop domain(s). ## Requirements - Configure CORS to allow `alexanderwhitestone.com` and dev origins - Allow WebSocket upgrade from same origins - Env var `CORS_ORIGINS` for configuration (comma-separated) - Default: permissive in dev, restrictive in production ## Acceptance Criteria - [ ] CORS properly configured for production domain - [ ] WebSocket connections respect origin checks - [ ] Dev mode remains permissive - [ ] Env var documented ## References - Parent epic: #{epic_num}
hermes added the apireplit labels 2026-03-18 22:01:00 +00:00
replit self-assigned this 2026-03-18 22:02:22 +00:00
This repo is archived. You cannot comment on issues.