Hello All, We are facing an issue with browser compatibility with Chrome. Below is the architecture of our product:
Client(localhost:8080) --> ServiceMix(Camel, ActiveMQ, localhost:8181) --> Service(Accepts RESTful POST calls, localhost:8080) My client uses XMLHttpRequest to make a POST call to servicemix with necessary parameters required for a particular service. Upon successful execution, my service sends the response back in a json string format. Now, the above flow works properly when executed using IE. When we try the same thing with Chrome we get some error related to “Access-Control-Allow-Origin” that says that request/response is not allowed from localhost:8080 to localhost:8181. Upon research I found that I need to set some request headers on camel for allowing “Access-Control-Allow-Origin” and “Access-Control-Allow-Headers”. I did that and now I am able to successfully hit my service, execute it but I get the same problem while sending a response back. One point that might help: Currently, I have filter implemented on my service layer i.e. before coming to the actual service end point my filter will be called. The moment I remove my filter I do not face any problem in sending the response back. Request to please guide/help me with this problem. Please ask me if I need to provide more information regarding my code. Regards, Vineet -- View this message in context: http://servicemix.396122.n5.nabble.com/Problem-with-Access-Control-Allow-Origin-on-Chrome-tp5717015.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
