Open shishirg opened 9 years ago
We developed our own proxy server at work. It would be a great feature in CodeKit.
+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
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!