Hi Anil,
Thanks,If I understand correctly you have your REST endpoints on some other server.You have to configure proxy.conf.json correctly to proxy those requests to appropriate URI.
This can be achieved by below :
For example .I have my /lib/* requests forwarded to localhost:9080 like below.
"/lib/*": {
"target": "http://localhost:9080",
"secure": false,
"logLevel": "debug",
"changeOrigin": true,
"pathRewrite": {
"^/lib": ""
}
Post this you need to reference this file in package.json as well.
If you do npm run start,you should see the proxy settings on the command line.
Now coming to Tomcat configuration,you need to have ProxyPass configuration to proxy the requests to some other server.
For example.
ProxyPass /lib http://localhost:9080
ProxyPassReverse /lib http://localhost:9080
This effectively tells Tomcat to proxy requests to localhost:9080.
Hope this clarifies,Try & let me know!
Happy Coding!