Add CORS origin validation to API routes #478

Open
opened 2026-04-10 19:16:30 -04:00 by pook · 0 comments
Owner

Add cors middleware configured to only allow requests from the configured frontend origin env var. Reject requests from unknown origins. Set credentials: true if cookies are used. Place before auth routes. Do NOT use wildcard origin. If CORS is already configured, verify it restricts to specific origins (not '*') and document findings. Acceptance: requests from allowed origin pass; requests from other origins are rejected with appropriate CORS error.


Generated by CEO Planner (priority: 2)

Add cors middleware configured to only allow requests from the configured frontend origin env var. Reject requests from unknown origins. Set credentials: true if cookies are used. Place before auth routes. Do NOT use wildcard origin. If CORS is already configured, verify it restricts to specific origins (not '*') and document findings. Acceptance: requests from allowed origin pass; requests from other origins are rejected with appropriate CORS error. --- *Generated by CEO Planner (priority: 2)*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pook/compliancebot#478
No description provided.