bdkjones / CodeKit2

CodeKit 2 Beta
97 stars 4 forks source link

Feature Request: allow CodeKit to be a selective reverse proxy; proxy out only specific URL to external server #508

Open shishirg opened 9 years ago

shishirg commented 9 years ago

Hello Bryan,

First off, CodeKit is terrific. I have one request that would make it very convenient for developers to do client-side Web development on their local boxes, while leaving the remote services alone. This involves configuring CodeKit to proxy out specific URL to remote servers, instead of proxying everything, which is the case if the "External Server" is enabled.

For example, if your project needs data from a remote AJAX endpoint, say http://www.some.url/apps/customer/customerDetails, you might have something like the following in your HTML; assumes jQuery:

$.ajax ({ url: "/apps/customer/customerDetails", dataType: "json", success: function(data) { // do something } });

However, since there is no "/apps/customer/customerDetails" in your local project/code, this will fail silently. Now, if CodeKit has the ability to configure specific local -> remote URL for proxying, something like:

Source URL: /apps/customer/customerDetails Actual URL: http://www.some.url/apps/customer/customerDetails

the client-side code will work on your local box, and will not require any changes when moving it to production.

Thank you!

DonaldTaylor commented 9 years ago

We developed our own proxy server at work. It would be a great feature in CodeKit.

KillerDesigner commented 9 years ago

+1

On Sat, Jun 27, 2015 at 1:43 PM, Donald Taylor notifications@github.com wrote:

This would be a great feature.

— Reply to this email directly or view it on GitHub https://github.com/bdkjones/CodeKit/issues/508#issuecomment-116138293.

Steven Noe KillerDesigner | (661) 513-4473