Closed dziamid closed 9 years ago
This tool will not help with that.
This proxy is installed on the server, hence the requirement that it can only proxy to requests to the same domain.
For your scenario, can do it with /etc/hosts file on Linux or OS X. I don't know how to do it in Windows.
Please, bare with my understanding of
proxying
concept. I need to intercept all requests to specific domain and forward them to another domain. For example, my app is being served athttp://localhost:8000
, I have cors xhrs requests going tohttps://some.public.api.com
that I want to forward tohttp://localhost:7000
. Is that possible withgrunt-connect-proxy
or I need another tool?I have tried setting up
conxtex
config like that:This only works for same-domain requests, not does not for cors.