AnsweredAssumed Answered

Why does browser download proxy.ashx file?

Question asked by minnag on Aug 20, 2018
Latest reply on Aug 20, 2018 by rscheitlin

I have a Web Appbuilder app (developer edition) using a custom widget that makes a call to another server to get a json response. I am using esriConfig.defaults.io.proxyUrl in my code and I am referencing my proxy/proxy.ashx file. This has been working fine up to now! But now it has suddenly stopped working. The browser now seems to be reading the proxy.ashx file as an html file instead of forwarding the request and returning a json response.

 

When I copy the request url and paste it in the browser, the proxy.ashx file is downloaded instead of returning json. When I test the proxy alone without the full request ("http:myurl\apps\2\proxy\proxy.ashx?"), the same thing happens. I have tried this in Chrome, IE, and Firefox. Is there a setting that could have caused this? Has anyone had this problem and fixed it?

 

Thanks!

Outcomes