Fix CORS default: restrict allowed origins from wildcard to explicit list #8
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
backend-compliance/main.py:70:When
CORS_ORIGINSis not set, every origin is allowed. Combined with the missing auth middleware (#4), this means any webpage can make authenticated API requests on behalf of a logged-in user.Required Actions
""— no origins allowed unless explicitly configuredallow_credentials=Trueonly if using httpOnly cookie auth (see M5 frontend issue)Acceptance Criteria
CORS_ORIGINSenv var causes startup warning and allows zero cross-origin requests