FYI - I believe I figured it out. Suggestions welcomed. Here is what I did:
On the frontend: Instead of doing GETs and POSTs to
"api.anothersite.com/api/messages" I now do the call to
"mysite.com/api/messages"
On the backend: added an additional "location" similar to:
location /api/messages {
I would like to hide a backend API REST server from public view and have it
accessed from frontend web server locally/internally. Is this possible? Below
are my setup and configs:
angular/nodejs frontend app, say it is "mysite.com" running on server at
127.0.0.1:51910
nodejs backend app, say