I was able to set up a proxy. I set it up on the same server that's hosting the apps. I tested that it's installed and that it is able to forward requests directly in the browser.
I've been using the Guide and the README file.
For the last step, I added the following to an app:
require(["esri/config"], function(esriConfig) {
esriConfig.request.proxyUrl = "";
});
I'm not sure what to put as the url.
Solved! Go to Solution.
Jared,
For the first half of the url you use the the same url as you use for the app then the folder name you place the porxy app in and then proxy.ashx
So for example http://www.example.com/Proxy/proxy.ashx
Jared,
For the first half of the url you use the the same url as you use for the app then the folder name you place the porxy app in and then proxy.ashx
So for example http://www.example.com/Proxy/proxy.ashx
Robert,
Does it matter where proxy.ashx lives? Where does it normally go?
Jared,
I normally add a folder called Proxy in the root of my web server that way more than one app will point to and use the proxy.