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

Route custom endpoints through proxy to avoid cors errors #256

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishnoianil
Copy link
Member

Currently UI makes a direct client side request for the custom endpoints. But most of the custom endpoints by default keep the CORS disabled. This PR routes the custom endpoint chat request through a proxy to avoid CORS errors.

Fixes #248

@vishnoianil vishnoianil changed the title Route custom endpoints through proxy to avoid cors errors Do-Not-Merge: Route custom endpoints through proxy to avoid cors errors Oct 9, 2024
@vishnoianil vishnoianil marked this pull request as draft October 9, 2024 10:28
@vishnoianil vishnoianil changed the title Do-Not-Merge: Route custom endpoints through proxy to avoid cors errors Route custom endpoints through proxy to avoid cors errors Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chatting with custom endpoint throws cors error if cors is disabled in endpoint server
1 participant