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

epic: API and CLI to enable/disable CORS #1635

@gabrielle-ong

Description

@gabrielle-ong

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

image

image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions