文档问题: 跨域 #184

Closed
opened 2026-02-16 05:19:24 -05:00 by yindo · 0 comments
Owner

Originally created by @zhangshuo687686 on GitHub (Jul 16, 2025).

问题描述

两台服务器A、B,服务器A部署了前端静态页面,服务器B部署了dify,服务器A通过公网ip访问服务器B的dify文件上传接口/v1/files/upload 页面提示跨域,查看.env 配置文件中跨域相关的参数都是允许跨域。docker-compose启动dify时有nginx,是需要在nginx中配置跨域吗,但是也配了,似乎还是不行

页面链接

https://github.com/langgenius/dify-docs/blob/main/zh-hans/getting-started/install-self-hosted/faq.mdx

建议修改

Originally created by @zhangshuo687686 on GitHub (Jul 16, 2025). ## 问题描述 <!-- 请简要描述您发现的问题 --> 两台服务器A、B,服务器A部署了前端静态页面,服务器B部署了dify,服务器A通过公网ip访问服务器B的dify文件上传接口/v1/files/upload 页面提示跨域,查看.env 配置文件中跨域相关的参数都是允许跨域。docker-compose启动dify时有nginx,是需要在nginx中配置跨域吗,但是也配了,似乎还是不行 ## 页面链接 https://github.com/langgenius/dify-docs/blob/main/zh-hans/getting-started/install-self-hosted/faq.mdx ## 建议修改 <!-- 如果有具体的修改建议,请在此说明 --> <!-- 感谢您对文档质量的关注! -->
yindo closed this issue 2026-02-16 05:19:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-docs#184