Tuesday, 14 March 2017

CORS exception while accessing rest service from angular js using node.js server

I am using node.js server to consume rest resource from angular js application.

My angular application is running on port 8082 and rest resource available at port 9081. I am able to access rest resource but get CORS exception in developer console.

I find out the solution to get rid of CORS exception. I have used jsonp instead of get method in angular service also got response without any exception, but unable to perform operation on the data return with response.

I come to know that I have to use http-proxy to communicate cross domain applications. If it is right can you please suggest me how can I configure http-proxy in node.js server.



via Anil Kumar

No comments:

Post a Comment