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].
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:
The pixiu's log ERROR:
The correct response in postman:
My conf.yaml for pixiu:
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.
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:
The pixiu's log ERROR:
The correct response in postman:
My conf.yaml for pixiu:
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.