This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Description
Problem
- Users are facing a CORS configuration issue when using a different frontend (eg ChatGPT)
- Also encountered on test requests sent from the docs /api-reference site
- We should offer the option to enable/disable CORS (similar to Jan API server)
Access to XMLHttpRequest at 'http://127.0.0.1:39281/v1/chat/completions' from origin 'https://cortex.so' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource
Success Criteria
- Ensure it works on browsers (Safari may have stricter CORs)
Tasklist
Reference bug reports
