Bugfix: Is CORS actually blocking port 6200 requests as the Testing ...
Documentation for Sessions
🐛 Bugfix: Is CORS actually blocking port 6200 requests as the Testing ...
Date: 2026-02-06
Time: 22:22:39 UTC
Session: editor2-97.15
Agent: documentation
Confidence: 98%
Status: ✅ Documented
📋 Decision Context
Question:
Is CORS actually blocking port 6200 requests as the Testing Director reported?
Task: Verify and fix CORS blocking on port 6200
🎯 Decision Made
Chosen:
No — cors.factory.ts already allows ALL localhost origins via isLocalhostOrigin() (line 154), which runs before the ALLOWED_ORIGINS check. Updated .env.local ALLOWED_ORIGINS for documentation clarity only.
Options Considered:
- No alternatives documented
💭 Reasoning
The Testing Director's analysis was based on reading .env.local and seeing port 6200 missing from ALLOWED_ORIGINS. However, cors.factory.ts has a isLocalhostOrigin() check at line 154 that unconditionally allows all localhost origins BEFORE the explicit allowed list is checked. The CORS bug is a non-issue with the current code — the .env.local was misleading but not functionally broken. Updated it anyway for clarity.
📁 Files Involved
.env.locallibs/libs-api/backend-core/src/lib/config/cors.factory.ts
🔗 Related
- Decision ID:
dev_1770416559886_v90zxzz - Session: 97
- Workspace: editor2
Auto-generated by MCP Smart Consolidation