grunt-connect-proxy icon indicating copy to clipboard operation
grunt-connect-proxy copied to clipboard

Configure proxies to work behind a corporate proxy

Open dewdad opened this issue 10 years ago • 1 comments

When I'm out of the office, I use the following config;

proxies: [{ context: '/V2', host: "services.odata.org", changeOrigin: true }]

And it works. In my office I have proxy, {host: "proxy.location.company.corp", port: 8080}.

I tried this: proxies: [ { context: '/v2', host: 'proxy.location.company.corp', port: 8080, // proxy port headers: { Host: "services.odata.org" }, changeOrigin: true } ]

with no luck however.

How can I configure this to work when in the office.

Thank you

dewdad avatar Jul 30 '14 08:07 dewdad

Hi @randelic,

It seems you also work in SAP as we suffered the same problem of Same-Origin-Policy and corporate proxy for UI5 with OData service.

The author of this grunt plugin seems not have time to work it out. So have you found any other solution for this problem?

Thanks, Roger

rogerxu avatar Jun 26 '15 12:06 rogerxu