Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatting with custom endpoint throws cors error if cors is disabled in endpoint server #248

Open
vishnoianil opened this issue Oct 7, 2024 · 0 comments · May be fixed by #256
Open

Chatting with custom endpoint throws cors error if cors is disabled in endpoint server #248

vishnoianil opened this issue Oct 7, 2024 · 0 comments · May be fixed by #256
Assignees
Labels
bug Something isn't working
Milestone

Comments

@vishnoianil
Copy link
Member

vishnoianil commented Oct 7, 2024

If the endpoint server doesn't enable cors, qa.ui.instructlab.ai and ui.instructlab.ai both will hit the folllowing error

Access to fetch at 'https://XXXX/v1/chat/completions' from origin 'https://qa.ui.instructlab.ai/' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

cc: @mingxzhao

@vishnoianil vishnoianil added the bug Something isn't working label Oct 7, 2024
@vishnoianil vishnoianil added this to the release-1.1 milestone Oct 7, 2024
@vishnoianil vishnoianil changed the title Chatting with customer endpoint throws cors error if hosted server disables the cors Chatting with custom endpoint throws cors error if cors is disabled in endpoint server Oct 9, 2024
@vishnoianil vishnoianil self-assigned this Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

1 participant