jina-ai / langchain-serve

⚡ Langchain apps in production using Jina & FastAPI

Home Page:https://cloud.jina.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to allow CORS requests?

jfdesgagne opened this issue · comments

When I publish my api to jina using lc-serve deploy jcloud api, my client app complains that CORS is not configured on the remote side. How can this be configured ? Thanks!

@jfdesgagne unfortunately there's no way to do that right now. Let me make PR tomorrow to enable this.

@jfdesgagne We've added CORS to all our jcloud endpoints by default and released it with 0.0.27.

Any thought of doing this for lc-serve deploy local?