跨域问题 #21

Open
opened 2025-05-09 17:22:32 +08:00 by Luke · 0 comments
Owner

当通过前端调用后端 http://49.235.96.75:9002/api/v1/chat/streamMultimodality 接口时,浏览器控制台报错,被 CORS 策略拦截。

具体报错:

Access to fetch at 'http://49.235.96.75:9002/api/v1/chat/streamMultimodality' from origin 'http://localhost:53132' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error
49.235.96.75:9002/api/v1/chat/streamMultimodality:1 
            
            
Failed to load resource: net::ERR_FAILED
当通过前端调用后端 `http://49.235.96.75:9002/api/v1/chat/streamMultimodality` 接口时,浏览器控制台报错,被 CORS 策略拦截。 具体报错: ``` Access to fetch at 'http://49.235.96.75:9002/api/v1/chat/streamMultimodality' from origin 'http://localhost:53132' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.Understand this error 49.235.96.75:9002/api/v1/chat/streamMultimodality:1 Failed to load resource: net::ERR_FAILED ```
Luke added the
bug
label 2025-05-09 17:22:33 +08:00
gewuyou was assigned by Luke 2025-05-09 17:22:33 +08:00
Luke added this to the V1.0.0 milestone 2025-05-09 17:32:13 +08:00
Luke closed this issue 2025-05-11 22:57:57 +08:00
Luke reopened this issue 2025-05-11 22:58:04 +08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: JCNC/LLMX#21
No description provided.