<?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 WebAdaptor authentication and CORS do not work in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192914#M17801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I'm&amp;nbsp;starting to think CORS support is broken in JS API 3.21, or does not support using a webadaptor with windows integrated authentication.&lt;/P&gt;&lt;P&gt;Has anyone have a setup like this working? If so can you share how you made it work? Is there any documentation about this combo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to be clear and concise with the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Server: windows 2012, with webadaptor with windows authentication, arcgis server 10.5, authentication web tier, windows authentication; webadaptor with windows authentication on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Web app with esri js 3.21, with windows authentication (same domain).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My web app works fine. There's a first request that fails with 401:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Fwebadaptor%2Frest%2Finfo%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://server/webadaptor/rest/info?f=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Then requests to my mapservice work fine, and use callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback in the querystring.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;When I add my server to&amp;nbsp;esriConfig.defaults.io.corsEnabledServers, things break.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;There is only 1 request to my mapservice. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;It fails with 401 Unauthorized. And nothing else is loaded from the webadaptor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Fwebadaptor%2Frest%2Fservices%2Fservicename%2FMapServer%3Ff%3Djson%26dpi%3D96%26transparent%3Dtrue%26format%3Dpng8" rel="nofollow" target="_blank"&gt;https://server/webadaptor/rest/services/servicename/MapServer?f=json&amp;amp;dpi=96&amp;amp;transparent=true&amp;amp;format=png8&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;As you can see, no callback is used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Request headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;BR /&gt;Accept:*/*&lt;BR /&gt;Accept-Encoding:gzip, deflate, br&lt;BR /&gt;Accept-Language:pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2&lt;BR /&gt;Cache-Control:no-cache&lt;BR /&gt;Connection:keep-alive&lt;BR /&gt;Content-Type:application/x-www-form-urlencoded&lt;BR /&gt;Host:sigims2.edia.pt&lt;BR /&gt;&lt;SPAN&gt;Origin:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdev1.domain.pt" rel="nofollow" target="_blank"&gt;https://dev1.domain.pt&lt;/A&gt;&lt;BR /&gt;Pragma:no-cache&lt;BR /&gt;&lt;SPAN&gt;Referer:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdev1.domain.pt%2F" rel="nofollow" target="_blank"&gt;https://dev1.domain.pt/&lt;/A&gt;&lt;BR /&gt;User-Agent:Mozilla/5.0 (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Response Headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Access-Control-Allow-Origin:*&lt;BR /&gt;Content-Length:1293&lt;BR /&gt;Content-Type:text/html&lt;BR /&gt;Date:Fri, 18 Aug 2017 14:54:17 GMT&lt;BR /&gt;Server:Microsoft-IIS/7.5&lt;BR /&gt;WWW-Authenticate:Negotiate&lt;BR /&gt;WWW-Authenticate:NTLM&lt;BR /&gt;X-Powered-By:ASP.NET&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Request:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;SPAN&gt;Request URL:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Fwebadaptor%2Frest%2Fservices%2Fmapservice%2FMapServer%3Ff%3Djson%26dpi%3D96%26transparent%3Dtrue%26format%3Dpng8" rel="nofollow" target="_blank"&gt;https://server/webadaptor/rest/services/mapservice/MapServer?f=json&amp;amp;dpi=96&amp;amp;transparent=true&amp;amp;format=png8&lt;/A&gt;&lt;BR /&gt;Request Method:GET&lt;BR /&gt;Status Code:401 Unauthorized&lt;BR /&gt;Remote Address:x.x.x.x:443&lt;BR /&gt;Referrer Policy:unsafe-url&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;IIS Log says no username is given in the request, and the error is 401 2 5 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Any help much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Duarte&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2017 15:05:17 GMT</pubDate>
    <dc:creator>DuarteCarreira</dc:creator>
    <dc:date>2017-08-18T15:05:17Z</dc:date>
    <item>
      <title>WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192914#M17801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I'm&amp;nbsp;starting to think CORS support is broken in JS API 3.21, or does not support using a webadaptor with windows integrated authentication.&lt;/P&gt;&lt;P&gt;Has anyone have a setup like this working? If so can you share how you made it work? Is there any documentation about this combo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to be clear and concise with the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Server: windows 2012, with webadaptor with windows authentication, arcgis server 10.5, authentication web tier, windows authentication; webadaptor with windows authentication on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Web app with esri js 3.21, with windows authentication (same domain).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My web app works fine. There's a first request that fails with 401:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Fwebadaptor%2Frest%2Finfo%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://server/webadaptor/rest/info?f=json&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Then requests to my mapservice work fine, and use callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback in the querystring.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;When I add my server to&amp;nbsp;esriConfig.defaults.io.corsEnabledServers, things break.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;There is only 1 request to my mapservice. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;It fails with 401 Unauthorized. And nothing else is loaded from the webadaptor:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Fwebadaptor%2Frest%2Fservices%2Fservicename%2FMapServer%3Ff%3Djson%26dpi%3D96%26transparent%3Dtrue%26format%3Dpng8" rel="nofollow" target="_blank"&gt;https://server/webadaptor/rest/services/servicename/MapServer?f=json&amp;amp;dpi=96&amp;amp;transparent=true&amp;amp;format=png8&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;As you can see, no callback is used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Request headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;BR /&gt;Accept:*/*&lt;BR /&gt;Accept-Encoding:gzip, deflate, br&lt;BR /&gt;Accept-Language:pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2&lt;BR /&gt;Cache-Control:no-cache&lt;BR /&gt;Connection:keep-alive&lt;BR /&gt;Content-Type:application/x-www-form-urlencoded&lt;BR /&gt;Host:sigims2.edia.pt&lt;BR /&gt;&lt;SPAN&gt;Origin:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdev1.domain.pt" rel="nofollow" target="_blank"&gt;https://dev1.domain.pt&lt;/A&gt;&lt;BR /&gt;Pragma:no-cache&lt;BR /&gt;&lt;SPAN&gt;Referer:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdev1.domain.pt%2F" rel="nofollow" target="_blank"&gt;https://dev1.domain.pt/&lt;/A&gt;&lt;BR /&gt;User-Agent:Mozilla/5.0 (&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Response Headers:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Access-Control-Allow-Origin:*&lt;BR /&gt;Content-Length:1293&lt;BR /&gt;Content-Type:text/html&lt;BR /&gt;Date:Fri, 18 Aug 2017 14:54:17 GMT&lt;BR /&gt;Server:Microsoft-IIS/7.5&lt;BR /&gt;WWW-Authenticate:Negotiate&lt;BR /&gt;WWW-Authenticate:NTLM&lt;BR /&gt;X-Powered-By:ASP.NET&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Request:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;&lt;SPAN&gt;Request URL:&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver%2Fwebadaptor%2Frest%2Fservices%2Fmapservice%2FMapServer%3Ff%3Djson%26dpi%3D96%26transparent%3Dtrue%26format%3Dpng8" rel="nofollow" target="_blank"&gt;https://server/webadaptor/rest/services/mapservice/MapServer?f=json&amp;amp;dpi=96&amp;amp;transparent=true&amp;amp;format=png8&lt;/A&gt;&lt;BR /&gt;Request Method:GET&lt;BR /&gt;Status Code:401 Unauthorized&lt;BR /&gt;Remote Address:x.x.x.x:443&lt;BR /&gt;Referrer Policy:unsafe-url&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;IIS Log says no username is given in the request, and the error is 401 2 5 2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Any help much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222;"&gt;Duarte&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 15:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192914#M17801</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2017-08-18T15:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192915#M17802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Duarte - the only things you need in your map.js should be the&lt;/P&gt;&lt;P&gt;"esri/config" in your require, the esriConfig alias in the require's function and the corsEnabledServers property and push method in your ready function:&lt;/P&gt;&lt;P&gt;esriConfig.defaults.io.corsEnabledServers.push("webadaptorname.domain.com");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whether you are using server authentication or token authentication shouldn't matter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 15:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192915#M17802</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2017-08-18T15:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192916#M17803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David, that's what I thought, but that's not what is happening. If I push my server to corsEnabledServers, the app breaks.&lt;/P&gt;&lt;P&gt;My reasoning is it's related to authentication, because I can use public mapservices without problems (another webadaptor without authentication on the same server).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:05:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192916#M17803</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2017-08-18T16:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192917#M17804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I more inclined to a bug in js api 3.21...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used code from&amp;nbsp;&lt;A class="link-titled" href="https://github.com/monsur/test-cors.org" title="https://github.com/monsur/test-cors.org"&gt;GitHub - monsur/test-cors.org: A tool to help test CORS requests&lt;/A&gt;&amp;nbsp;, and I get everything to work - I can make requests to a windows authenticated mapservice, using cors with credentials option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same thing using esri js 3.21 gives 401 error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set&amp;nbsp;&lt;/P&gt;&lt;P&gt;esriConfig.defaults.io.corsEnabledServers.push(&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{host:"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Farcgisserver.domain.com" rel="nofollow" target="_blank"&gt;https://arcgisserver.domain.com&lt;/A&gt;&lt;SPAN&gt;",withCredentials: true});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a 401 error with the following error message:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdev.domain.com" rel="nofollow" target="_blank"&gt;https://dev.domain.com&lt;/A&gt;&lt;SPAN&gt;' is therefore not allowed access. The response had HTTP status code 401."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing the same thing with test-cors code, works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... anyone up to reproduce this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 16:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192917#M17804</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2017-08-18T16:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192918#M17805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at this?&amp;nbsp;&lt;A class="link-titled" href="http://server.arcgis.com/en/web-adaptor/latest/install/iis/securing-web-services-with-integrated-windows-authentication.htm" title="http://server.arcgis.com/en/web-adaptor/latest/install/iis/securing-web-services-with-integrated-windows-authentication.htm"&gt;Securing web services with Integrated Windows Authentication—Installation Guides (10.5) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any experience with anything other than arcgis server token authentication unfortunately so I'm not sure how to troubleshoot this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Off the top of my head, when I look at your request to the MapServer that fails, nothing seems to be getting passed in that would enable authentication. &amp;nbsp;When you tried the open source example that worked, what did your requests look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 17:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192918#M17805</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-08-18T17:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192919#M17806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Duarte, I too am set up with token-based authentication at 10.4.1 - when we go to 10.5.x or 10.6 with Portal and Federate we may to with Windows auth, don't know yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 18:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192919#M17806</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2017-08-18T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192920#M17807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas. Yes I have been searching through documentation for additional info. For now, I think configuration is ok. Also, I can access the mapservice by using its url in the browser - authentication kicks in - a login popup appears - after which I can access the mapservice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I too noticed the absence of authentication headers when using esri js. I am going to confirm the headers that go through when using the test-cors.org code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for taking a look.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 08:35:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192920#M17807</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2017-08-21T08:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192921#M17808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so it is solved! Weekends work wonders in our brains!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not a bug. But a bit of quirkiness from the js api...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you have to set&amp;nbsp;esriConfig.defaults.io.useCors = "with-credentials", or it won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only then does this take effect:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;esriConfig.defaults.io.corsEnabledServers.push({host:"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fserver.domain.com" rel="nofollow" target="_blank"&gt;https://server.domain.com&lt;/A&gt;&lt;SPAN&gt;", withCredentials: true});&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you set default.io.useCors=true, it breaks. If you set it to false, it works again. Go figure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is what it is. Personally I would have done it simpler: If useCors=true, and then if corsEnabledServers have the option withCredentials set to true, just use it. I suppose it would break some apps, so a 3rd option was added to useCors. I guess...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, thanks again for your help. And I hope this will be useful to someone else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 09:26:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192921#M17808</guid>
      <dc:creator>DuarteCarreira</dc:creator>
      <dc:date>2017-08-21T09:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: WebAdaptor authentication and CORS do not work</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192922#M17809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, much. This saved my weekend!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Dec 2017 22:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webadaptor-authentication-and-cors-do-not-work/m-p/192922#M17809</guid>
      <dc:creator>JamesGonsoski</dc:creator>
      <dc:date>2017-12-01T22:10:56Z</dc:date>
    </item>
  </channel>
</rss>

