-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Labels
component/need-triageNeed maintainers to triageNeed maintainers to triagetype/need-triageNeed maintainers to triageNeed maintainers to triage
Description
Pre-check
- I am sure that all the content I provide is in English.
Search before asking
- I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
Dubbo Java 3.3.0, OpenJDK17 , Windows 10
Steps to reproduce this issue
According to the configuration mentioned in the documentation above

allowed-origins、allowed-methods field in org.apache.dubbo.config.nested.CorsConfig Which are java type of String[] do not take effect, so the dubbo service can not get the corresponding CorsConfig value. But allow-credentials、max-age can take effect。
I reviewed the code of org.apache.dubbo.config.AbstractConfig(the red rectangle),none of condition can match. So no value will return when class field type is String[] .

Even fix problem above, I think it is not work. Http1UnaryServerChannelObserver rebuild the metadata(Header),so whatever the header is set in Filter, are not send to client.

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
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
component/need-triageNeed maintainers to triageNeed maintainers to triagetype/need-triageNeed maintainers to triageNeed maintainers to triage
Type
Projects
Status
Todo