You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zheng Feng (Jira)" <ji...@apache.org> on 2022/03/29 00:49:00 UTC
[jira] [Resolved] (CAMEL-17865) camel-platform-http-vertx: CORS conflict in Camel REST
[ https://issues.apache.org/jira/browse/CAMEL-17865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zheng Feng resolved CAMEL-17865.
--------------------------------
Resolution: Fixed
> camel-platform-http-vertx: CORS conflict in Camel REST
> ------------------------------------------------------
>
> Key: CAMEL-17865
> URL: https://issues.apache.org/jira/browse/CAMEL-17865
> Project: Camel
> Issue Type: Bug
> Components: camel-platform-http-vertx
> Affects Versions: 3.16.0
> Reporter: Zheng Feng
> Assignee: Zheng Feng
> Priority: Major
> Fix For: 3.14.3, 3.17.0
>
>
> It response *400* when the rest define with *consumes* and CORS enabled.
>
> {code:java}
> restConfiguration().component("platform-http").enableCORS(true);
> rest("/rest")
> .post()
> .consumes("application/json")
> .to("direct:rest");
> from("direct:rest")
> .setBody(simple("Hello ${body}")); {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)