Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17865

camel-platform-http-vertx: CORS conflict in Camel REST

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      It response 400 when the rest define with consumes and CORS enabled.

       

      restConfiguration().component("platform-http").enableCORS(true);
      
      rest("/rest")
              .post()
              .consumes("application/json")
              .to("direct:rest");
      
      from("direct:rest")
              .setBody(simple("Hello ${body}")); 

      Attachments

        Issue Links

          Activity

            People

              zhfeng Zheng Feng
              zhfeng Zheng Feng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: