<?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: ArcGISTiledMapServiceLayer url with proxy how? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgistiledmapservicelayer-url-with-proxy-how/m-p/183011#M16993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can place the proxy anywhere on your web server e.g. in the root under a folder called "proxy". &amp;nbsp;Then in your Javascript you specify which services and URLs must route through the proxy page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esriConfig&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;proxyUrl &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039);"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;'/proxy/proxy.ashx'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;;&lt;/SPAN&gt;
esriConfig&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;alwaysUseProxy &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039);"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;;&lt;/SPAN&gt;
urlUtils&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444;"&gt;addProxyRule&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;{&lt;/SPAN&gt;
&amp;nbsp; urlPrefix&lt;SPAN class="" style="color: #999999;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fexample.com" target="_blank"&gt;https://example.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;
&amp;nbsp; proxyUrl&lt;SPAN class="" style="color: #999999;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;'/proxy/proxy.ashx'&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="border-right: 1px solid #999999; padding-top: 1em;"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And in the proxy config you must specify the access credentials&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 09:19:19 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2021-12-11T09:19:19Z</dc:date>
    <item>
      <title>ArcGISTiledMapServiceLayer url with proxy how?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgistiledmapservicelayer-url-with-proxy-how/m-p/183010#M16992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;So we have a basemap thats fetched from a url&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;var basemap = new ArcGISTiledMapServiceLayer("&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fexamplemap.com" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://examplemap.com&lt;/A&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;The problem is that we are supposed to use a proxy to connect to this basemap. Where do you place the proxy and how?&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;The proxy sent to us looks approximately like this "&lt;/SPAN&gt;&lt;A class="" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Frandomexample.com%2Fproxy.ashx" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://randomexample.com/proxy.ashx&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 10:37:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgistiledmapservicelayer-url-with-proxy-how/m-p/183010#M16992</guid>
      <dc:creator>VictorKniif</dc:creator>
      <dc:date>2017-02-22T10:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGISTiledMapServiceLayer url with proxy how?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgistiledmapservicelayer-url-with-proxy-how/m-p/183011#M16993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can place the proxy anywhere on your web server e.g. in the root under a folder called "proxy". &amp;nbsp;Then in your Javascript you specify which services and URLs must route through the proxy page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esriConfig&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;proxyUrl &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039);"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;'/proxy/proxy.ashx'&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;;&lt;/SPAN&gt;
esriConfig&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;defaults&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;io&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;alwaysUseProxy &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.498039);"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0077aa;"&gt;false&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;;&lt;/SPAN&gt;
urlUtils&lt;SPAN class="" style="color: #999999;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="" style="color: #d74444;"&gt;addProxyRule&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;{&lt;/SPAN&gt;
&amp;nbsp; urlPrefix&lt;SPAN class="" style="color: #999999;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fexample.com" target="_blank"&gt;https://example.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;,&lt;/SPAN&gt;
&amp;nbsp; proxyUrl&lt;SPAN class="" style="color: #999999;"&gt;:&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900;"&gt;'/proxy/proxy.ashx'&lt;/SPAN&gt;
&lt;SPAN class="" style="color: #999999;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999;"&gt;;&lt;/SPAN&gt;&lt;SPAN class="" style="border-right: 1px solid #999999; padding-top: 1em;"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;And in the proxy config you must specify the access credentials&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 09:19:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgistiledmapservicelayer-url-with-proxy-how/m-p/183011#M16993</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-11T09:19:19Z</dc:date>
    </item>
  </channel>
</rss>

