drewzboto / grunt-connect-proxy

Grunt Connect support for proxying API calls during development
MIT License
424 stars 122 forks source link

Configure proxies to work behind a corporate proxy #67

Open dewdad opened 10 years ago

dewdad commented 10 years ago

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

rogerxu commented 9 years ago

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