Use the DotNet proxy

608
3
Jump to solution
12-11-2018 02:23 PM
JaredPilbeam2
MVP Regular Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

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

JaredPilbeam2
MVP Regular Contributor

Robert,

Does it matter where proxy.ashx lives? Where does it normally go?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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.