Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
18761396502 opened this issue Nov 22, 2023 · 0 comments
Closed

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

18761396502 opened this issue Nov 22, 2023 · 0 comments

Comments

@18761396502
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants