Minio 跨域 CORS 如何配置 #4854
Replies: 11 comments 1 reply
-
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.
-
Hi @Gray19970! I'm here to help you with any bugs, questions, or contributions you have. Let's squash this bug together! I found a similar closed issue that might be relevant to your problem: [Bug] 根据教程设置子目录路径 ENV NEXT_PUBLIC_BASE_PATH,重新构建生成docker镜像运行不成功。. This issue was resolved by a pull request that fixed support for To ensure |
Beta Was this translation helpful? Give feedback.
-
I found a similar closed issue that might be relevant to your problem. The issue was about setting the To address your issue, ensure that the |
Beta Was this translation helpful? Give feedback.
-
我直接run命令里面加的,为什么直接加参数不能用呢,难道说这个NEXT_PUBLIC_BASE_PATH只能build一个镜像的时候用吗 |
Beta Was this translation helpful? Give feedback.
-
I added it directly in the run command. Why can’t it be used if I add the parameters directly? Could it be that NEXT_PUBLIC_BASE_PATH can only be used when building an image? |
Beta Was this translation helpful? Give feedback.
-
对,而且这个实现起来很麻烦,准备v2废弃了 |
Beta Was this translation helpful? Give feedback.
-
Yes, and this is very troublesome to implement. It is planned to be abandoned in v2. |
Beta Was this translation helpful? Give feedback.
-
哥们,我太菜了,我主要是被CORS弄的,我到处搜寻方法,就是说,知识库和GPT之间要是同一个域名下,不能用端口,就得做代理,可是这个后台Request的请求头不能改,代理就不好做,我就纳闷了,其他人都是这么做到的呢,你有没有什么方法,就是我想GPT和知识库Minio之间没有CORS报错 |
Beta Was this translation helpful? Give feedback.
-
Man, I'm so bad. I was mainly troubled by CORS. I searched everywhere for methods. That is to say, if the knowledge base and GPT are under the same domain name and the port cannot be used, a proxy must be used. But the request of this background Request If the header cannot be changed, it will be difficult to make a proxy. I am confused. Others have done it this way. Do you have any method? I think there is no CORS error between GPT and the knowledge base Minio. |
Beta Was this translation helpful? Give feedback.
-
Minio 这个应该可以配置允许跨域的 . @cy948 来帮忙看看? |
Beta Was this translation helpful? Give feedback.
-
Minio should be able to be configured to allow cross-domain. @cy948 can you help? |
Beta Was this translation helpful? Give feedback.
-
📦 Environment
Docker
📌 Version
latest
💻 Operating System
Other Linux
🌐 Browser
Chrome
🐛 Bug Description
docker run -d -p 3210:3210 -e NEXT_PUBLIC_BASE_PATH=/lobechat -e ACCESS_CODE=lobe66 启动镜像,服务的地址并不能运行在http://localhost:3210/lobechat 上
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions