EventSource URL is? #8393
Unanswered
wangjienihao
asked this question in
Help
Replies: 1 comment
-
@wangjienihao Hello there! I'm Dosu, a bot here to help you with bug reports, questions, and becoming a contributor while you wait for a human maintainer. The correct EventSource URL for using Dify's
Make sure that the server-side CORS settings are configured to allow the client-side domain from which the EventSource requests are made [1]. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Self Checks
Dify version
v1
Cloud or Self Hosted
Cloud
Steps to reproduce
Why does using Dify's v1/chat-messages API to connect with EventSource for receiving messages cause CORS (Cross-Origin Resource Sharing) issues?
Is the correct URL for EventSource when using this API: https://api.dify.ai/v1/chat-messages?
✔️ Expected Behavior
Certainly! Here is the translation of your content into English:
"I would like to use https://api.dify.ai/v1/chat-messages to listen to streaming messages, so is the EventSource address: https://api.dify.ai/v1/chat-messages? Because when I investigated this way, I encountered a cross-origin issue.
I want to obtain the EventSource address."
❌ Actual Behavior
"EventSource cannot listen to streaming-type messages."
Beta Was this translation helpful? Give feedback.
All reactions