Re: Reply to OPTIONS requests - Camel REST DSL

2015-09-11 Thread Sergey Beryozkin
Sorry, not sure if you are suggesting the same, but IMHO there should be a way to optionally delegate to the underlying REST DSL consumer to handle OPTIONS, even though it won't be for the purpose of starting a route. Specifically, in CXF JAX-RS we have a very good CORS filter, I'm presuming oth

Reply to OPTIONS requests - Camel REST DSL

2015-09-11 Thread Charles Moulliard
Hi, Do you think that its is possible to reply to an OPTIONS request with Camel REST DSL ? When swagger ui sends a POST/PUT/DELETE request and that a different http server issue the request, then it will first send an OPTIONS preflight request (https://github.com/swagger-api/swagger-ui/issues/44,