zhfeng opened a new pull request #7278: URL: https://github.com/apache/camel/pull/7278
It might be another option to add a [CorsHandler](https://github.com/vert-x3/vertx-web/blob/master/vertx-web/src/main/java/io/vertx/ext/web/handler/impl/CorsHandlerImpl.java) from vertx-web. But it looks like a little different with the camel [RestBindingAdvice::setCORSHeader](https://github.com/apache/camel/blob/main/core/camel-core-processor/src/main/java/org/apache/camel/processor/RestBindingAdvice.java#L518). My current fix is a trick to bypass [the consumes checking when body is empty](https://github.com/vert-x3/vertx-web/blob/master/vertx-web/src/main/java/io/vertx/ext/web/impl/RouteState.java#L1025). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
