I have an nginx server with configuration;
server {
listen 9090;
server_name localhost;
root /Users/anonuser/Desktop/workspace/ttttt/portal/design;
which has a set of rewrite and proxy_pass commands;
rewrite ^.*(/account/.*)$ $1 last;
location /account {
proxy_pass https://www.example.com;
}
rewrite ^.*(/iap-dataapi/.*)$ $1 last;
location /iap-dataapi {
proxy_pass https://www.example.com;
}
rewrite ^.*(/era/.*)$ $1 last;
location /era/ {
proxy_pass https://www.example.com;
}
rewrite ^.*(/imageScaler/.*)$ $1 last;
location /imageScaler/ {
proxy_pass https://www.example.com;
}
I am calling the application located in;
http://localhost:9090/oba-client/com/tttt/portal/cust/
There is the index.html file located in and it has a line to make a ajax request to a host something like;
http://localhost:9090/com/ericsson/iptv/portal/tttt/account/login
somehow this call from the application repeated 7 times ( I can see from the access logs) and fails with no response.
If I make the same request from POSTMAN request succeed.
I got really stucked at this point and can not find a way out to make this work;
so my aim is actually; forward requests to remote server (to be able to bypass cors) based on some keywords.