Open fujita-h opened 1 day ago
I found a similar discussion regarding CORS issues in the Dify repository. You might find it helpful to check out the following thread: Help: I'm encountering a CORS (Cross-Origin Resource Sharing) issue [1].
In Dify, CORS settings are configured using environment variables such as CONSOLE_CORS_ALLOW_ORIGINS
and WEB_API_CORS_ALLOW_ORIGINS
, both of which default to *
, allowing access from all domains [2]. If you're encountering CORS issues, you might need to adjust these settings or update the domain configurations in your docker-compose.yml
file if applicable [3].
For your specific issue with file link input being blocked by CORS, ensure that the domains used in your app and API are correctly configured to allow cross-origin requests. If the problem persists, you may need to look into server-side configurations or proxy settings to handle CORS more effectively.
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.10.2
Cloud or Self Hosted
Cloud
Steps to reproduce
https://udify.app/chat/xxxxxxxxx
) and enter the image URLhttps://cloud.dify.ai/logo/logo-site.png
from the "Paste file link" button.✔️ Expected Behavior
The file will be uploaded and a thumbnail image will be displayed.
❌ Actual Behavior
Display error message "Invalid file link".
There is a CORS issue because the app domain is
udify.app
, but the API domain iscloud.dify.ai
.