dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Bug] When triple-rest-cors is enabled, Spring RestClient cannot get a normal response after making a request.

Open Rawven opened this issue 8 months ago • 1 comments

Pre-check

  • [X] I am sure that all the content I provide is in English.

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

3.3.0-beta.3

Steps to reproduce this issue

run the test https://github.com/Rawven/dubbo-samples/blob/triple-cors-rest/2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-springmvc/src/test/java/org/apache/dubbo/rest/demo/test/CorsConsumerIT.java

Apifox and apache http client can call the interface with cors function enabled normally, but spring rest client cannot call it normally.

What you expected to happen

spring rest client should be ok

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • [ ] Yes I am willing to submit a pull request on my own!

Code of Conduct

Rawven avatar May 31 '24 17:05 Rawven