Remote OLLAMA url CORS failed #6116
-
📦 EnvironmentDocker 📌 Version1.53.7 💻 Operating SystemOther Linux 🌐 BrowserChrome 🐛 Bug Description我在 Ollama 进程设置了 📷 Recurrence Steps我在 Ollama 进程设置了 🚦 Expected BehaviorNo response 📝 Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
你是不是 https 域名去请求了 http ? |
Beta Was this translation helpful? Give feedback.
-
Have you requested http for http? |
Beta Was this translation helpful? Give feedback.
-
@dellnoantechnp 你好,我是Dosu。我是一个可以帮助您解决 bug、回答问题并成为贡献者的机器人。我会在等待人类维护者的过程中为您提供帮助。 To address the CORS failure issue when connecting to the Ollama service in a Docker environment, ensure you are using the correct environment variables. Here is a setup that might help resolve the issue:
These configurations should help in resolving the CORS issue by ensuring that the CORS settings are correctly applied within the Docker environment [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report |
Beta Was this translation helpful? Give feedback.
-
I found a similar discussion that might be helpful. In the thread titled "Ollama can't be connected," a user resolved a similar issue by making two configuration changes:
These changes helped resolve the CORS issue in Lobe Chat for Ollama [1]. You might want to try these adjustments to see if they resolve your issue as well. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report |
Beta Was this translation helpful? Give feedback.
-
不是的,本地 ollama 跑在 http 协议上的,在命令行使用 |
Beta Was this translation helpful? Give feedback.
-
No, local ollama runs on the http protocol, accessed normally on the command line using |
Beta Was this translation helpful? Give feedback.
-
我遇到了相同的问题 |
Beta Was this translation helpful? Give feedback.
-
I've had the same problem |
Beta Was this translation helpful? Give feedback.
-
@dellnoantechnp 你网页是 https 的吧?目前 https 协议的网页发送 http 请求,就会有这个问题 |
Beta Was this translation helpful? Give feedback.
-
@dellnoantechnp Your web page is from https, right? At present, the https protocol web page sends http request, and this problem will occur |
Beta Was this translation helpful? Give feedback.
-
是的, lobe chat 是放在 https 跑的。 哦,这被浏览器判定风险了,难怪!! |
Beta Was this translation helpful? Give feedback.
-
Yes, lobe chat is run on https. Oh, this was judged by the browser to violate the rules, no wonder! ! |
Beta Was this translation helpful? Give feedback.
-
This issue is closed, If you have any questions, you can comment and reply. |
Beta Was this translation helpful? Give feedback.
-
![]() 使用 https 连接 ollama 就好了,感谢。 |
Beta Was this translation helpful? Give feedback.
使用 https 连接 ollama 就好了,感谢。