You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/03/28 16:40:42 UTC

[GitHub] [camel] zhfeng opened a new pull request #7278: CAMEL-17865: camel-platform-http-vertx - Fix CORS conflict in Camel REST

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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel] zhfeng merged pull request #7278: CAMEL-17865: camel-platform-http-vertx - Fix CORS conflict in Camel REST

Posted by GitBox <gi...@apache.org>.
zhfeng merged pull request #7278:
URL: https://github.com/apache/camel/pull/7278


   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org