<?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 Request Cookies problem with WebKit browsers in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-cookies-problem-with-webkit-browsers/m-p/175892#M16348</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;We have found a problem with all WebKit related browsers (Mac Safari &amp;amp; all iOS browsers) while trying to get tile layers (WMTS) that are behind an authentication. Everything is working fine with android devices&amp;nbsp;and desktop browsers&amp;nbsp;like Chrome, Firefox and Edge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&amp;nbsp;Safari and other WebKit browsers (iOS devices) are not sending credentials/cookies with request headers. Request fails because the server/layer can't be accessed without the authentication details, which should be included with the request cookies. When using safari dev tools, the network tab for the tile image requests says "No request cookies." and e.g. request made with Chrome has&amp;nbsp;all the required authentication details sent with the request cookies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we use:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS API for JavaScript 4.11 (problem has been with previous 4.x versions aswell)&lt;/LI&gt;&lt;LI&gt;esriConfig.request.trustedServers.push("layerurl") is being used when adding layers to the map view (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" target="_blank" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request"&gt;Config/Request documentation&lt;/A&gt;)&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Indicates whether cross origin requests made to the associated server should include credentials such as cookies and authorization headers&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Our&amp;nbsp;app is supposed to work with apple devices but this issue is making it&amp;nbsp;difficult to work with, because some important layers are not being rendered. Is this a known issue&amp;nbsp;or is there something we might be missing that&amp;nbsp;could fix the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jere&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2019 07:43:06 GMT</pubDate>
    <dc:creator>JerePallaskorpi</dc:creator>
    <dc:date>2019-05-02T07:43:06Z</dc:date>
    <item>
      <title>Request Cookies problem with WebKit browsers</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-cookies-problem-with-webkit-browsers/m-p/175892#M16348</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;We have found a problem with all WebKit related browsers (Mac Safari &amp;amp; all iOS browsers) while trying to get tile layers (WMTS) that are behind an authentication. Everything is working fine with android devices&amp;nbsp;and desktop browsers&amp;nbsp;like Chrome, Firefox and Edge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt;&amp;nbsp;Safari and other WebKit browsers (iOS devices) are not sending credentials/cookies with request headers. Request fails because the server/layer can't be accessed without the authentication details, which should be included with the request cookies. When using safari dev tools, the network tab for the tile image requests says "No request cookies." and e.g. request made with Chrome has&amp;nbsp;all the required authentication details sent with the request cookies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we use:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ArcGIS API for JavaScript 4.11 (problem has been with previous 4.x versions aswell)&lt;/LI&gt;&lt;LI&gt;esriConfig.request.trustedServers.push("layerurl") is being used when adding layers to the map view (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" target="_blank" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request"&gt;Config/Request documentation&lt;/A&gt;)&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Indicates whether cross origin requests made to the associated server should include credentials such as cookies and authorization headers&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Our&amp;nbsp;app is supposed to work with apple devices but this issue is making it&amp;nbsp;difficult to work with, because some important layers are not being rendered. Is this a known issue&amp;nbsp;or is there something we might be missing that&amp;nbsp;could fix the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jere&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 07:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/request-cookies-problem-with-webkit-browsers/m-p/175892#M16348</guid>
      <dc:creator>JerePallaskorpi</dc:creator>
      <dc:date>2019-05-02T07:43:06Z</dc:date>
    </item>
  </channel>
</rss>

