<?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 Geocoder http refused fix in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoder-http-refused-fix/m-p/102597#M9400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, this is not a question so much as a kludge for those of you who have http apps built on the javascript api which broke today because ESRI turned off http for the World Geocode Service, as detailed here: &lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000023241" title="https://support.esri.com/en/technical-article/000023241"&gt;FAQ: How is the World Geocoding Service affected by HTTPS Only enforcement?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change your all of your apps to https only, and you should... but while you do all of that, here's a kludge that may fix the address search widget until you can get the work done:&lt;/P&gt;&lt;P&gt;1: Find your arcgis_js_api folder that you deployed in your web server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2: Locate the &amp;lt;version&amp;gt;/js/esri/dijit subfolder.&lt;/P&gt;&lt;P&gt;3: Edit Geocoder.js&lt;/P&gt;&lt;P&gt;4: Replace the text:&lt;/P&gt;&lt;P&gt;"http:":&lt;SPAN style="color: #ff0000;"&gt;location.protocol&lt;/SPAN&gt;)+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; With:&lt;/P&gt;&lt;P&gt;"http:":&lt;SPAN style="color: #008000;"&gt;"https"&lt;/SPAN&gt;)+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),&lt;/P&gt;&lt;P&gt;5: Save the change, clear your cache, and reload your app and it should work to use the built in arcgisGeocoder again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory you could probably do this also by editing each app you have to change the file &amp;lt;app folder&amp;gt;/widgets/Geocoder/config.json, setting "arcgisGeocoder":false, then defining the https geocoder according to the specs here&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/geocoder-amd.html#geocoder1" title="https://developers.arcgis.com/javascript/3/jsapi/geocoder-amd.html#geocoder1"&gt;Geocoder | API Reference | ArcGIS API for JavaScript 3.33&lt;/A&gt;&amp;nbsp; under "geocoders", but you will need to do that to each app and I haven't tried that yet, so cannot confirm it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone done that change instead?&amp;nbsp; If so, can you share your settings that worked in the config here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2020 20:51:15 GMT</pubDate>
    <dc:creator>JoshuaDalton</dc:creator>
    <dc:date>2020-09-30T20:51:15Z</dc:date>
    <item>
      <title>Geocoder http refused fix</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoder-http-refused-fix/m-p/102597#M9400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, this is not a question so much as a kludge for those of you who have http apps built on the javascript api which broke today because ESRI turned off http for the World Geocode Service, as detailed here: &lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000023241" title="https://support.esri.com/en/technical-article/000023241"&gt;FAQ: How is the World Geocoding Service affected by HTTPS Only enforcement?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can change your all of your apps to https only, and you should... but while you do all of that, here's a kludge that may fix the address search widget until you can get the work done:&lt;/P&gt;&lt;P&gt;1: Find your arcgis_js_api folder that you deployed in your web server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2: Locate the &amp;lt;version&amp;gt;/js/esri/dijit subfolder.&lt;/P&gt;&lt;P&gt;3: Edit Geocoder.js&lt;/P&gt;&lt;P&gt;4: Replace the text:&lt;/P&gt;&lt;P&gt;"http:":&lt;SPAN style="color: #ff0000;"&gt;location.protocol&lt;/SPAN&gt;)+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; With:&lt;/P&gt;&lt;P&gt;"http:":&lt;SPAN style="color: #008000;"&gt;"https"&lt;/SPAN&gt;)+"//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"),&lt;/P&gt;&lt;P&gt;5: Save the change, clear your cache, and reload your app and it should work to use the built in arcgisGeocoder again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In theory you could probably do this also by editing each app you have to change the file &amp;lt;app folder&amp;gt;/widgets/Geocoder/config.json, setting "arcgisGeocoder":false, then defining the https geocoder according to the specs here&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/geocoder-amd.html#geocoder1" title="https://developers.arcgis.com/javascript/3/jsapi/geocoder-amd.html#geocoder1"&gt;Geocoder | API Reference | ArcGIS API for JavaScript 3.33&lt;/A&gt;&amp;nbsp; under "geocoders", but you will need to do that to each app and I haven't tried that yet, so cannot confirm it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone done that change instead?&amp;nbsp; If so, can you share your settings that worked in the config here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:51:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geocoder-http-refused-fix/m-p/102597#M9400</guid>
      <dc:creator>JoshuaDalton</dc:creator>
      <dc:date>2020-09-30T20:51:15Z</dc:date>
    </item>
  </channel>
</rss>

