<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Setting up proxy for printing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695170#M64681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you set up the proxy temporarily to allow all traffic through by changing &lt;/P&gt;&lt;P&gt;&amp;lt;ProxyConfig allowedReferers="&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://mor" rel="nofollow" target="_blank"&gt;http://mor&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ProxyConfig allowedReferers="*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not work to allow everything through, then I would use Google Chrome Developer Tools F12 to try to figure out the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you have a folder on the IIS server (web server) that has a folder&lt;/P&gt;&lt;P&gt;c$\inetpub\wwwroot\mor\mor_js_dev\DotNet where the proxy files are stored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would move these files to a folder directly off c$\inetpub\wwwroot so it can be accessed by other HTML5/JavaScript apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2015 17:12:30 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2015-08-27T17:12:30Z</dc:date>
    <item>
      <title>Setting up proxy for printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695167#M64678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, I'm struggling a bit to figure out how to set up the .NET proxy so I can use my print service. I believe I've set things up as they should be, but when I run my map I get an "Authentication Required" popup asking for a username and password. I don't know what u/p it's expecting as neither my Windows or ArcGIS server u/p seem to be satisfactory. My print service is not secured, nor are any other layers on the map. Does anyone know why this may be happening?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 15:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695167#M64678</guid>
      <dc:creator>LauraMiles1</dc:creator>
      <dc:date>2015-08-27T15:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up proxy for printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695168#M64679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you copy your the contents of your proxy.config to this thread?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is esriConfig.defaults.io.proxyUrl set to in your html file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 16:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695168#M64679</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-08-27T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up proxy for printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695169#M64680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;My proxy.config contains:&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;ProxyConfig allowedReferers="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://mor" rel="nofollow" target="_blank"&gt;http://mor&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrls&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serverUrl url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://cop-gis4.corp.portvancouver.com/arcgis/rest/services/MOR_Printing/GPServer/Export%20Web%20Map" rel="nofollow" target="_blank"&gt;http://cop-gis4.corp.portvancouver.com/arcgis/rest/services/MOR_Printing/GPServer/Export%20Web%20Map&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; matchAll="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serverUrls&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/ProxyConfig&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://mor" rel="nofollow" target="_blank"&gt;http://mor&lt;/A&gt;&lt;SPAN&gt; is the server hosting the application, whereas &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://cop-gis4.corp.portvancouver.com" rel="nofollow" target="_blank"&gt;http://cop-gis4.corp.portvancouver.com&lt;/A&gt;&lt;SPAN&gt; hosts all the map's services. I only need the print service to go through the proxy (and if I change the server url to just &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://cop-gis4.corp.portvancouver.com" rel="nofollow" target="_blank"&gt;http://cop-gis4.corp.portvancouver.com&lt;/A&gt;&lt;SPAN&gt;, and matchall="false", I still get a 403 forbidden error). The rest of the services show up on the map just fine, and did so before I tried to use a proxy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my site's javascript, I have the line:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;esriConfig.defaults.io.proxyUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://mor/mor_js_dev/DotNet/proxy.ashx" rel="nofollow" target="_blank"&gt;http://mor/mor_js_dev/DotNet/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695169#M64680</guid>
      <dc:creator>LauraMiles1</dc:creator>
      <dc:date>2015-08-27T17:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up proxy for printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695170#M64681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you set up the proxy temporarily to allow all traffic through by changing &lt;/P&gt;&lt;P&gt;&amp;lt;ProxyConfig allowedReferers="&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://mor" rel="nofollow" target="_blank"&gt;http://mor&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch="true"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ProxyConfig allowedReferers="*"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mustMatch="false"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not work to allow everything through, then I would use Google Chrome Developer Tools F12 to try to figure out the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you have a folder on the IIS server (web server) that has a folder&lt;/P&gt;&lt;P&gt;c$\inetpub\wwwroot\mor\mor_js_dev\DotNet where the proxy files are stored?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would move these files to a folder directly off c$\inetpub\wwwroot so it can be accessed by other HTML5/JavaScript apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695170#M64681</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-08-27T17:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up proxy for printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695171#M64682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael, setting the allowedReferers and mustMatch as you specified gives the same result - login box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the folder is on the web server. mor_js_dev contains the html files etc. for the site, and in it is the DotNet folder with all the proxy files. We haven't got any other HTML5/JavaScript apps running off this web server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been using Chrome Developer tools, but it's not given me much clarity. I check the console but is there anything else I should be looking at? I'm a GIS person first and not much of a developer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I type the proxy url that's being sent directly into the browser (DotNet/proxy.ashx?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://cop-gis4.corp.portvancouver.com/arcgis/rest/services/MOR_Printing/GPServer/Export%20Web%20Map?f=json" rel="nofollow" target="_blank"&gt;http://cop-gis4.corp.portvancouver.com/arcgis/rest/services/MOR_Printing/GPServer/Export%20Web%20Map?f=json&lt;/A&gt;&lt;SPAN&gt;) I still get a login box and when I cancel that out, a 401 unauthorized error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695171#M64682</guid>
      <dc:creator>LauraMiles1</dc:creator>
      <dc:date>2015-08-27T17:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up proxy for printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695172#M64683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, I may have figured something out. If I go around my web adaptor url, I'm not getting the login box. This only happens when I use the web adaptor url. The print service is not secured though. So I'm a bit stumped why a login box is popping up. We are trying to route all services (whether secured or not) through the web adaptor as standard practice so if in future we want to secure some layers, it's just a matter of doing so in Server Manager.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setting-up-proxy-for-printing/m-p/695172#M64683</guid>
      <dc:creator>LauraMiles1</dc:creator>
      <dc:date>2015-08-27T17:46:31Z</dc:date>
    </item>
  </channel>
</rss>

