<?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: MapServer does not load from WKWebView but works in both UIWebView and Safari in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481176#M44741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem.&lt;/P&gt;&lt;P&gt;I get the following error running it on my iPad "Request header field Cache-Control is not allowed by Access-Control-Allow-Headers".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found a solution to the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br.&lt;/P&gt;&lt;P&gt;Kasper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Aug 2020 06:54:11 GMT</pubDate>
    <dc:creator>KasperRasmussen</dc:creator>
    <dc:date>2020-08-13T06:54:11Z</dc:date>
    <item>
      <title>MapServer does not load from WKWebView but works in both UIWebView and Safari</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481174#M44739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an application that needs to use WKWebView to display a map. This is a requirement from Apple as UIWebView will be deprecated by the end of this year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both UIWebView and Safari, the&amp;nbsp;website with a map&amp;nbsp;gets displayed correctly&amp;nbsp; but in the WKWebView the following call generates an error:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json" title="https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json"&gt;https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"An error occurred trying to load the resource".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As result, the map is never displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 22:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481174#M44739</guid>
      <dc:creator>HectorMeneses</dc:creator>
      <dc:date>2020-07-10T22:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer does not load from WKWebView but works in both UIWebView and Safari</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481175#M44740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I modified my app to point to the following site in esri:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink11" href="https://developers.arcgis.com/javascript/3/" title="https://developers.arcgis.com/javascript/3/"&gt;https://developers.arcgis.com/javascript/3/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the app using WKWebView fails to display the sample map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I use safari in the iPad simulator the same page displays the sample map without trouble.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is with WKWebView:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="esri sample map does not display in WKWebview" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/500440_Screen Shot 2020-07-15 at 5.34.59 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same page displays just fine in the iPad simulator safari browser:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="esri sample map displays in safari" class="jive-emoji jive-image image-2 j-img-original" src="/legacyfs/online/500445_Screen Shot 2020-07-15 at 5.38.14 PM.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody else has this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 22:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481175#M44740</guid>
      <dc:creator>HectorMeneses</dc:creator>
      <dc:date>2020-07-15T22:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer does not load from WKWebView but works in both UIWebView and Safari</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481176#M44741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem.&lt;/P&gt;&lt;P&gt;I get the following error running it on my iPad "Request header field Cache-Control is not allowed by Access-Control-Allow-Headers".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found a solution to the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br.&lt;/P&gt;&lt;P&gt;Kasper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 06:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481176#M44741</guid>
      <dc:creator>KasperRasmussen</dc:creator>
      <dc:date>2020-08-13T06:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: MapServer does not load from WKWebView but works in both UIWebView and Safari</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481177#M44742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kasper,&lt;/P&gt;&lt;P&gt;The error we were facing was related to the handling of self signed certificates in the didReceiveAuthenticationChallenge method. Basically, we were cancelling all requests if they didn't match one of our host domains. Instead we needed to call PerformDefaultHandling in the completionHandler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your issue is different... it sounds like the server side needs to change to allow Cache-Control in your Access-Control-Allow-Headers setting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 19:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mapserver-does-not-load-from-wkwebview-but-works/m-p/481177#M44742</guid>
      <dc:creator>HectorMeneses</dc:creator>
      <dc:date>2020-08-17T19:10:08Z</dc:date>
    </item>
  </channel>
</rss>

