Cors Issue When Rest Api Application Server(express) And Angulars Js Application Running On Different Port
I have rest api application written in node.js & express is running on port 3000 and angularjs application running on port 9001 on same server . On calling rst api from angula
Solution 1:
I solved it by adding adding line app.options('*', cors()); just before all routes.
It was an issue of preflight request with http-request-header "OPTIONS"
Post a Comment for "Cors Issue When Rest Api Application Server(express) And Angulars Js Application Running On Different Port"