apache / dubbo-go-pixiu

Based on the proxy gateway service of dubbo-go, it solves the problem that the external protocol calls the internal Dubbo cluster. At present, it supports HTTP and gRPC[developing].
https://dubbogo.github.io/dubbo-go-proxy/
Apache License 2.0
476 stars 149 forks source link

ERROR when I send a POST request in a webpage #590

Closed 18761396502 closed 10 months ago

18761396502 commented 10 months ago

Q1: When I tried to send a POST request from a webpage, which is written by vue2, to dubbo-go-pixiu, the browser reported that this XMLHttpRequest has been blocked by CORS policy, and the pixiu's log said "ERROR http/manager.go:91 ServeHTTP Requested URL /myUserApp/service.UserProvider/FindAll not found". Actually, I tried this URL in postman and it responded correctly, which means my provider is healthy, but at the webpage it couldn't work.

The browser's ERROR: 屏幕截图 2023-11-22 162559 屏幕截图 2023-11-22 163121

The pixiu's log ERROR: 20231122-162501

The correct response in postman: 屏幕截图 2023-11-22 163621

My conf.yaml for pixiu: 屏幕截图 2023-11-22 165422

Q2: I know the pixiu only support the POST method, but the browser always send a OPTOPNS request before the POST request because of some reasons such as too many request headers and CORS policy. So how can I deal with the OPTIONS request is another question.