<?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: Is it possible to force the javascript api _not_ to use the proxy? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87912#M7968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, but in my case all of my services have to be secured and only one,&lt;/P&gt;&lt;P&gt;the basemap, is not. Not a big deal just would be nice for convenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 04:39:50 GMT</pubDate>
    <dc:creator>AlexeiB</dc:creator>
    <dc:date>2014-09-25T04:39:50Z</dc:date>
    <item>
      <title>Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87907#M7963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm accessing a private layer from a server that uses an expired certificate (I have no control over this server).&amp;nbsp; I haven't found a way to allow the proxy page to allow just this one expired certificate and not allow all expired certs.&amp;nbsp; I want to know if it is possible to force the javascript api to not use the proxy for this layer so that any security problems are handled by the browser.&amp;nbsp; Hopefully our users will have more influence over the data provider than we do &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;.&amp;nbsp; We are requesting the legend and while the proxy is not usually used for the layer itself, it always uses the proxy for the legend when using an esriRequest.&amp;nbsp; I found the corsEnabledServers setting in esri.config.defaults.io and adding the domain to this list seems to keep it from proxying in Chrome, but not in IE9.&amp;nbsp; The only solution I can think of if we can't stop the api from proxying this request is to use a different ajax request other than esriRequest.&amp;nbsp; If I have to go that way, does anybody know if there are any concerns with accessing these services with native javascript or other popular library ajax requests: dojo.xhr, jquery.get, etc?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 23:22:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87907#M7963</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2014-09-23T23:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87908#M7964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 1em 0 1em 0.8em; font-size: 14px; color: black; font-family: 'Lucida Grande', Helvetica, Arial, Verdana, sans-serif; background-color: #fefefe;"&gt;It is possible to define the proxy for a set of resources with the same URL prefix. If the request URL matches a rule, then the request will be routed through the proxy. To define a proxy rule specify the url for the proxy and the prefix for the resources that need to be accessed through the proxy.&lt;/P&gt;&lt;PRE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; font-size: 1.1em; color: #4d4d4d; background-color: #fefefe;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; urlUtils.addProxyRule({ urlPrefix: "route.arcgis.com", proxyUrl: "&amp;lt;url_to_proxy&amp;gt;" });&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you can add proxy rules only for the services that you want to go through the proxy and exclude all the others. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is more detailed documentation about the proxy in JavaScript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html" title="https://developers.arcgis.com/javascript/jshelp/ags_proxy.html"&gt;Using the proxy | Guide | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 00:57:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87908#M7964</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2014-09-24T00:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87909#M7965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply &lt;A href="https://community.esri.com/migrated-users/34624"&gt;Artemis Fili&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very familiar with addProxyRule.&amp;nbsp; We use it to force proxying for those layers which need it.&amp;nbsp; What I'm looking for is a way to force *not* proxying for esriRequests.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 01:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87909#M7965</guid>
      <dc:creator>DavidElies</dc:creator>
      <dc:date>2014-09-24T01:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87910#M7966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point David, it's something I've been wanting to do for a while as well but unfortunately have not yet found a way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 01:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87910#M7966</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2014-09-24T01:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87911#M7967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The documentation mentions :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;You can also specify whether or not the proxy should always be used for communication using &lt;CODE&gt;alwaysUseProxy&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;esriConfig.defaults.io.alwaysUseProxy = false;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is possible for you to specify specific proxy rules for all services that need a proxy and want to disable it for everything else then theoretically the above should do the trick for you.&lt;/P&gt;&lt;P&gt;What seems to not be supported from the looks of it is disabling the use of the proxy on specific services when a global proxy for all requests is enabled meaning you are forced to know all the proxy-friendly services up front.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 19:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87911#M7967</guid>
      <dc:creator>AnargyrosTomaras</dc:creator>
      <dc:date>2014-09-24T19:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87912#M7968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True, but in my case all of my services have to be secured and only one,&lt;/P&gt;&lt;P&gt;the basemap, is not. Not a big deal just would be nice for convenience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 04:39:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87912#M7968</guid>
      <dc:creator>AlexeiB</dc:creator>
      <dc:date>2014-09-25T04:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to force the javascript api _not_ to use the proxy?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87913#M7969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've ran into this same issue, have you managed to&amp;nbsp;create this behaviour?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:58:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-force-the-javascript-api-not-to/m-p/87913#M7969</guid>
      <dc:creator>Joao_PauloPaschoal</dc:creator>
      <dc:date>2017-07-10T16:58:50Z</dc:date>
    </item>
  </channel>
</rss>

