<?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: Problem with http/https in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464134#M42907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just be careful to choose a fake domain that either doesn't exist or that you don't care about, as it will override the real domain if you try to go to it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 20:51:01 GMT</pubDate>
    <dc:creator>Stacy-Rendall</dc:creator>
    <dc:date>2018-07-17T20:51:01Z</dc:date>
    <item>
      <title>Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464124#M42897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have configuration file with services. Services are available from unsecure protocol (http -&amp;nbsp;only).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i create instance for examle of FeatureLayer, service is called from https. I have in browser CORS enabled (Chrome with plugin), but that would not affect, when service is called from secure protocol. I tried adding the server to config (corsEnabledServer), but not working... I work with API version 4.8. Interesting is, that version 4.7 work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 05:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464124#M42897</guid>
      <dc:creator>JiriStrnad</dc:creator>
      <dc:date>2018-07-13T05:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464125#M42898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the 4.8 API is upgrading all feature layer requests (haven't tested other request types) to HTTPS. If your server is not serving on HTTPS this causes problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to be a bug with 4.8, as it is not mentioned in the release notes or Feature Layer documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 21:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464125#M42898</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2018-07-13T21:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464126#M42899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The update was done to avoid mixed content errors. There should be no change if your application is running on http, but if your app is running on https, we upgrade the requests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're running on localhost though, localhost validates as true for &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Window/isSecureContext"&gt;isSecureContext&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this issue when developing on localhost, you can create a self-signed cert for your machine. This is a nice repo to look at.&amp;nbsp;&lt;A class="link-titled" href="https://github.com/FiloSottile/mkcert" title="https://github.com/FiloSottile/mkcert"&gt;GitHub - FiloSottile/mkcert: A simple zero-config tool to make locally trusted development certificates with any names y…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're going to be updating our documentation to reflect this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 22:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464126#M42899</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-07-13T22:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464127#M42900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the feature service is&amp;nbsp;not secure. Does this now mean you cannot develop on localhost if you have HTTP services?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 02:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464127#M42900</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2018-07-15T02:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464128#M42901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're still testing how viable it would be to white list localhost in the API, but your best option at the moment is add self-signed certs to your local machine. That link above is one route, and there are others depending on your local needs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'll update this thread with any more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 16:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464128#M42901</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-07-15T16:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464129#M42902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like we are talking at cross-purposes, can you please actually read what I am saying?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your local machine has a self-signed certificate and you are running on HTTP&lt;STRONG&gt;S&lt;/STRONG&gt; localhost then&lt;STRONG&gt; HTTP feature services will be blocked&lt;/STRONG&gt;, as that is mixed content:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;dojo.js:152 Mixed Content: The page at '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Flocalhost%3A8080%2F" rel="nofollow" target="_blank"&gt;https://localhost:8080/&lt;/A&gt;&lt;SPAN&gt;' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;...'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you are running on HTTP&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;localhost then&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;HTTP feature services are automatically upgraded to HTTPS and cannot be accessed as they don't exist&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless there is some other method, setting or flag that has not been mentioned up until now: &lt;STRONG&gt;how do you access HTTP services if you are developing on localhost&lt;/STRONG&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 20:41:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464129#M42902</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2018-07-15T20:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464130#M42903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Yes, you're correct, I was thinking of repro'ing a prod env as much as possible. I was able to repro this at one time, but now I'm having trouble, as everything I'm testing works. Do your URLs look like "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fgisdev%2Farcgis%2Frest" rel="nofollow" target="_blank"&gt;http://gisdev/arcgis/rest&lt;/A&gt;&lt;SPAN&gt;..." using a machine name and not a full domain?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2018 23:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464130#M42903</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-07-15T23:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464131#M42904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rene, no - it is a full domain...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 02:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464131#M42904</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2018-07-16T02:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464132#M42905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had a similar issue when migrating from 4.7 to 4.8. My FeatureLayer services and MapImageServices are redirected to https in a localhost dev environment. To solve it what I have done is to add a fake domain to my hosts file on windows (C:\Windows\System32\drivers\etc)&amp;nbsp; , for example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;127.0.0.1 test-ieo.com&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my dev app is running on&amp;nbsp;&lt;SPAN&gt;test-ieo.com:3000/ in addition to localhost:3000/.&amp;nbsp; In the&amp;nbsp;test-ieo.com url is working fine!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this can be useful for someone...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jon&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 09:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464132#M42905</guid>
      <dc:creator>JonGarrido</dc:creator>
      <dc:date>2018-07-17T09:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464133#M42906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes -&amp;nbsp;&lt;STRONG&gt;this solves it!&amp;nbsp;&lt;/STRONG&gt;Using this solution: instead of accessing the page through localhost, which evaluates to secure environment and thus upgrades request to HTTPS (which doesn't exist for HTTP services), the fake domain&amp;nbsp;&lt;EM&gt;does not evaluate to &lt;SPAN&gt;secure&lt;/SPAN&gt;&lt;/EM&gt;, so doesn't upgrade the request, thus allowing you to access the &lt;STRONG&gt;HTTP service&lt;/STRONG&gt; &lt;STRONG&gt;over HTTP&lt;/STRONG&gt;. Thanks&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/33285"&gt;Jon Garrido&lt;/A&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464133#M42906</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2018-07-17T20:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464134#M42907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just be careful to choose a fake domain that either doesn't exist or that you don't care about, as it will override the real domain if you try to go to it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 20:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464134#M42907</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2018-07-17T20:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464135#M42908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just my 2c -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I understand the reasoning behind I think the specific solution is causing more trouble than helping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible I'd like to have an option or a switch in the API whether I want this extra behavior, or I'd rather see the mixed content warning messages in the console.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There are valid business scenarios when serving and accessing pages and layers via localhost is needed. In such cases HTTP is a good solution. By adding a fake certificate to fake security we are merely masking the issue, and not necessarily adding any security. It is rather the opposite - adding and trusting an insecure certificate that shouldn't be trusted. Imagine the case where a department with hundreds of computers will need to have a fake certificate generated and be made trusted on each of those machines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Separately from all that, the "isSecureContext" is still an experimental technology (as per the MDN page), and that behavior may change by the time it becomes an official standard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 01:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464135#M42908</guid>
      <dc:creator>VladimirStrinski</dc:creator>
      <dc:date>2018-11-27T01:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464136#M42909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;were experiencing the same problem, but as this is a customer project I cannot edit HOSTS files to get around the issue. I concur with Vladimir:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Vladimir Strinski&amp;nbsp;wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;There are valid business scenarios when serving and accessing pages and layers via localhost is needed. In such cases HTTP is a good solution.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Whitelisting localhost would be nice, but if that is not easily done please please please provide a configuration option that will not automatically upgrade our URLs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Nov 2018 17:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464136#M42909</guid>
      <dc:creator>DavidSchontzler</dc:creator>
      <dc:date>2018-11-27T17:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464137#M42910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Localhost has been whitelisted&amp;nbsp;in 4.9:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/release-notes/#url-upgrade-behavior" title="https://developers.arcgis.com/javascript/latest/guide/release-notes/#url-upgrade-behavior"&gt;Release notes for 4.9 | ArcGIS API for JavaScript 4.9&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 17:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464137#M42910</guid>
      <dc:creator>DavidSchontzler</dc:creator>
      <dc:date>2018-11-28T17:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464138#M42911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also esri services do not support https and CORS? I can't use Geometry service&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access to XMLHttpRequest at 'https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 10:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464138#M42911</guid>
      <dc:creator>RubyStroschein</dc:creator>
      <dc:date>2019-03-21T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with http/https</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464139#M42912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using &lt;A href="http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project&lt;/A&gt;&amp;nbsp;instead. You need to replace https with http or enable ssl for your local host to access https geometry service&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:30:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-http-https/m-p/464139#M42912</guid>
      <dc:creator>sapnas</dc:creator>
      <dc:date>2019-11-13T15:30:22Z</dc:date>
    </item>
  </channel>
</rss>

