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

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

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment