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

前端报跨域错误CORS #44

Open
leoleelxh opened this issue Jan 20, 2024 · 13 comments
Open

前端报跨域错误CORS #44

leoleelxh opened this issue Jan 20, 2024 · 13 comments

Comments

@leoleelxh
Copy link

如图所示,服务貌似都启动了,调用chat报错。
image

@jingzl
Copy link

jingzl commented Jan 23, 2024

碰到同样的问题:
Access to XMLHttpRequest at 'http://xxxx:8777/api/local_doc_qa/list_knowledge_base' from origin 'http://xxxx' 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.

@daoge88
Copy link

daoge88 commented Jan 25, 2024

遇到了相同的问题,请问解决了么?通过修改前端代码解决的么?

@shaobo76
Copy link

新建知识库就遇到了这个问题,求解

@shaobo76
Copy link

新建知识库就遇到了这个问题,求解

重新跑了一遍run.sh,现在又没问题了

@leoleelxh
Copy link
Author

新建知识库就遇到了这个问题,求解

重新跑了一遍run.sh,现在又没问题了

大佬怎么解决的?在什么环境下,用哪个命令呢?

@shaobo76
Copy link

新建知识库就遇到了这个问题,求解

重新跑了一遍run.sh,现在又没问题了

大佬怎么解决的?在什么环境下,用哪个命令呢?

ubuntu linux,只是重跑了一遍run.sh就好了,不知道是哪里的问题。

@leoleelxh
Copy link
Author

新建知识库就遇到了这个问题,求解

重新跑了一遍run.sh,现在又没问题了

大佬怎么解决的?在什么环境下,用哪个命令呢?

ubuntu linux,只是重跑了一遍run.sh就好了,不知道是哪里的问题。

是怎么设置的?local方式还是cloud方式?

@jingzl
Copy link

jingzl commented Feb 15, 2024

问题貌似还是没有解决

@Cordy27
Copy link

Cordy27 commented Feb 18, 2024

相同的问题,还是没有解决

@supersaiyan2019
Copy link

局域网访问可以,但想映射到公网就不行,调后端8777获取知识库时跨域了。

@jingzl
Copy link

jingzl commented Mar 4, 2024

这个问题有新进展吗?

@sweetcard
Copy link

image

@successren
Copy link
Collaborator

this issue has been resolved in v1.3.3, please pull the latest code to try again, also see: #188

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

No branches or pull requests

8 participants