Hi,

I am using Camel 2.18.2 and exposing REST api using camel Jetty component.
The enableCORS options is set to true. Still the call to the API from
angular 2 application is getting exception for CORS.

Definition for the REST URI: 
from("jetty:{{server.api.endpoint}}/file_monitor/report/all_file_updates?httpMethodRestrict=GET,OPTIONS&enableCORS=true&optionsEnabled=true")
                                .setHeader(Exchange.CONTENT_TYPE, 
constant("application/json"))

exception: 
Response to preflight request doesn't pass access control check: No
'Access-Control-Allow-Origin' header is present on the requested resource. 

Any pointers on what i can correct?

Regards
Sumit




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Jetty-Cors-not-working-tp5796886.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to