-
Notifications
You must be signed in to change notification settings - Fork 34
Unable to get proxying to work #18
Comments
Yes, the current proxy does only work in a generic way. So you can't bind a specific path to a specific destination. What you could currently do is to add a custom middleware and handle the requests on your own. We are looking into a way to add this functionality, so I'll leave this one open. |
okay will try the middleware. I've also used grunt-connect-proxy which works well but doesn't play with grunt-openui5 for some reason. Will try the middleware and update back here... |
ps. the point of this is so that you can git clone a WebIDE repository and immediately run it on your pc where the local proxy takes care of what the Destinations do on HCP. |
I got the local proxy working using grunt-connect-proxy. Its slightly changed since I've used it last. However it does not play well behind corporate firewall. ;-( Here's a sample grunt file which shows how you can git clone a web ide app to your local machine and serve it with
Note that I can no longer get the openui5 bower library to work anymore so switched to a local openui5 repository. |
Great to hear that you could get it working. |
I closed this issue as consulting and opened a new issue for the enhancement request in the correct repo: |
You could try https://github.com/chimurai/http-proxy-middleware It's build on top of Think the following recipes should answer some questions raised in this thread: |
Thanks @chimurai ! |
Just wondering if you have an example Gruntfile using grunt-connect's proxy feature as I can't seem to get it to work.
For example.... When the app tries to load URL's from "/destinations/Northwind/v3/northwind/northwind.svc/" they should proxy to: "http://services.odata.orgv3/northwind/northwind.svc/"
Using the proxypath option as per the doco doesn't seem to engage the functionality...
The text was updated successfully, but these errors were encountered: