Re: HTTP OPTIONS

2015-04-23 Thread Ted
I should have mentioned that I am using the Servlet component and Camel 2.15.1. As a quick hack I added the following code to the end of the method ServletRestServletResolveConsumerStrategy.resolve(HttpServletRequest request, Map consumers) if (answer == null && method.equals("O

Re: HTTP OPTIONS

2015-04-23 Thread Henryk Konsek
Hi, I've fixed some OPTIONS/CORS related issues in Netty HTTP component. After these [1] two [2] changes (scheduled for 2.16 and 2.15.2) you can finally call Netty HTTP based REST DSL routes from AngularJS without running into the OPTIONS problems. If you wait for Camel 2.15.2 and use Netty HTTP

Re: HTTP OPTIONS

2015-04-23 Thread Claus Ibsen
Hi What http component do you use? servlet / jetty / or something else? And what version of Camel. There is a few tickets about rest-dsl and CORS issues still to get fixed / improved. On Thu, Apr 23, 2015 at 10:18 AM, Ted wrote: > Hi, > > I have a simple REST DSL route that has both a GET and a