GitHub user stijnvanbael opened a pull request: https://github.com/apache/camel/pull/471
Allows customizing the OPTIONS request. Could be used as a workaround for CAMEL-8373: rest("/products") .verb("options") .route() .setHeader("Access-Control-Allow-Origin", constant("*")) .setHeader("Access-Control-Allow-Methods", constant("GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH")) .setHeader("Access-Control-Allow-Headers", constant("Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers")) .setHeader("Allow", constant("GET, OPTIONS, POST, PATCH")); You can merge this pull request into a Git repository by running: $ git pull https://github.com/stijnvanbael/camel master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/camel/pull/471.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #471 ---- commit d2520570f60bb13fecb14a504069c4d345785556 Author: Stijn Van Bael <stijnvanb...@gmail.com> Date: 2015-04-09T15:10:09Z Allows customizing the OPTIONS request. Could be used as a workaround for CAMEL-8373: rest("/products") .verb("options") .route() .setHeader("Access-Control-Allow-Origin", constant("*")) .setHeader("Access-Control-Allow-Methods", constant("GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH")) .setHeader("Access-Control-Allow-Headers", constant("Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers")) .setHeader("Allow", constant("GET, OPTIONS, POST, PATCH")); ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---