<?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: CORS and Web-Tier Secured Services in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51146#M4503</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When dealing with esri tech support on a multi ArcGIS Server CORs issue recently I was told that it was the Web Adaptor that was adding the "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Access-Control-Allow-Origin" to the header. FYI, it is not WAB that is doing this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Apr 2016 13:22:03 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-04-21T13:22:03Z</dc:date>
    <item>
      <title>CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51139#M4496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where my application will be required to access web-tiered services across different domains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the following to the web config of web adapter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;customHeaders&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Access-Control-Allow-Credentials" value="true" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Access-Control-Allow-Origin" value="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://sub.domain.com" rel="nofollow" target="_blank"&gt;http://sub.domain.com&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/customHeaders&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when testing in chrome, I receive the following error in console:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;XMLHttpRequest cannot load &amp;lt;url to secured service&amp;gt;. the Access-Control-Allow-Origin header contains multiple values '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://sub.domain.com,http://sub.domain.com" rel="nofollow" target="_blank"&gt;http://sub.domain.com,http://sub.domain.com&lt;/A&gt;&lt;SPAN&gt;' .&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://sub.domain.com" rel="nofollow" target="_blank"&gt;http://sub.domain.com&lt;/A&gt;&lt;SPAN&gt; is therefore&amp;nbsp;&amp;nbsp; not allowed access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked everything, i have definitly only configured one header in the web.config.&amp;nbsp; I am using the testing tool available on the enable cors site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Against an unsecured sevrice, it works fine as we don't have to set the allow credentials header, but with secured services, it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have also tried firefox, and i do not have IE available in this environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for anyone who can help!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 15:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51139#M4496</guid>
      <dc:creator>StephenWay</dc:creator>
      <dc:date>2015-08-13T15:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51140#M4497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried adding a remove to ensure there aren't duplicates from a higher level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;customHeaders&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove name="Access-Control-Allow-Origin" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Access-Control-Allow-Credentials" value="true" /&amp;gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="Access-Control-Allow-Origin" value="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://sub.domain.com" target="_blank"&gt;http://sub.domain.com&lt;/A&gt;&lt;SPAN&gt;" /&amp;gt;&lt;/SPAN&gt;
&amp;lt;/customHeaders&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51140#M4497</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2021-12-10T21:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51141#M4498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff, thank you for replying, that is really useful to know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, the issue was to do with some inheritance crazy-ness going&amp;nbsp; on with IIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it seems, that using web app builder, I am getting a 401 immediately - it is not even prompting for a username/password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel like i am close, just not close enough!!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any experience of CORS on web-tier secure services using Web App builder, I would appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 15:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51141#M4498</guid>
      <dc:creator>StephenWay</dc:creator>
      <dc:date>2015-08-14T15:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51142#M4499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen, did you eventually have success on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2016 00:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51142#M4499</guid>
      <dc:creator>ColeAndrews</dc:creator>
      <dc:date>2016-01-22T00:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51143#M4500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same question - I get the following from WAB:&lt;BR /&gt;&lt;SPAN&gt;The 'Access-Control-Allow-Origin' header contains multiple values '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Flocalhost%3A3344" rel="nofollow" target="_blank"&gt;https://localhost:3344&lt;/A&gt;&lt;SPAN&gt;, *', but only one is allowed. Origin '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Flocalhost%3A3344" rel="nofollow" target="_blank"&gt;https://localhost:3344&lt;/A&gt;&lt;SPAN&gt;' is therefore not allowed access.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its a bit weird - I am very certain that this did not happen before, only notice it now when look back on something i worked n before. It seems to me the rest of the app/layers is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The '*' is in my web.config of my arcgis server REST endpoint. If i take it out of there, then only one is left and it work. Unfortunately I can’t take it out of there to allow other clients access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is WAB always adding the header value, and if yes - can I stop it from doing it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 22:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51143#M4500</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2016-04-20T22:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51144#M4501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to try implementing the ESRI resource proxy in your application:&amp;nbsp; &lt;A href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;https://github.com/Esri/resource-proxy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind, any time you use a referrer header origin for authentication, these are easily spoofed with simple 'modify header' tools such as this firefox extension: &lt;A href="https://addons.mozilla.org/en-US/firefox/addon/modify-headers/" title="https://addons.mozilla.org/en-US/firefox/addon/modify-headers/"&gt;https://addons.mozilla.org/en-US/firefox/addon/modify-headers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any stored authentication, allowed by a referrer header, can be easily bypassed and open a pretty large security hole in your system.&amp;nbsp; So, you'll still want to use some sort of token based, credential authentication with your secure services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 22:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51144#M4501</guid>
      <dc:creator>BillGrow</dc:creator>
      <dc:date>2016-04-20T22:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51145#M4502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to ArcGIS endpoints - one secured and the other not. &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;server.com/arcgis/ (secured)&lt;/LI&gt;&lt;LI&gt;server.com/arcgis2/ (unsecured)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For the secured one, I already use the ESRI resource proxy -&amp;nbsp; with no “The 'Access-Control-Allow-Origin' header contains multiple values” warnings.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;No problems as well if I use the ESRI resource proxy with the unsecured one. - But then I could have secured everything / don’t over public access to some published services.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When one look at the dot.net version of the ESRI resource proxy – the function “private void copyHeaders” don’t exclude 'Access-Control-Allow-Origin' headers in the copy, which make me assume that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;WAB don’t add the header when a proxy is used. (make sense – it’s not a ‘client’ any more accessing the REST service)&lt;/LI&gt;&lt;LI&gt;WAB add the header when no proxy is used. Can I stop it from doing it, or should I take out the&amp;nbsp; 'Access-Control-Allow-Origin' section (included below) in the web.config of my unsecured endpoint? That would stop other (none-WAB) JavaScript API applications from using it. (Unless a proxy is used from there.)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Would the WAB app config file attribute “authorizedCrossOriginDomains” be used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;httpProtocol&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;customHeaders&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/customHeaders&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/httpProtocol&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 10:59:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51145#M4502</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2016-04-21T10:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51146#M4503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; When dealing with esri tech support on a multi ArcGIS Server CORs issue recently I was told that it was the Web Adaptor that was adding the "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;Access-Control-Allow-Origin" to the header. FYI, it is not WAB that is doing this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 13:22:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51146#M4503</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-04-21T13:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51147#M4504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert,&amp;nbsp; that help to focus my energy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I played around with the WebAdaptor, add and remove crossdomain.xml &amp;amp; clientaccesspolicy.xml files wich I sort of knew will make no difference as well as trying to move the '&amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;' to an IIS root folder location. No luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will use the public services via the proxy then - I'm very hestant to tak ethe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 15:10:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51147#M4504</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2016-04-21T15:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51148#M4505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I use to add &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; '&amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;' to an IIS root folder location on all three of my ArcGIS Servers, but no I only have &amp;lt;remove name="Access-Control-Allow-Origin" /&amp;gt; as Jeff recommended on all three in the web.config of the IIS root folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 15:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51148#M4505</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-04-21T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51149#M4506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you look in the IIS logs to see which document is actually throwing the error, and where the request is being stopped?&amp;nbsp; It sounds more like an IIS configuration error, than an error in the widely distributed ESRI WebAdaptor.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if ArGIS Server &lt;EM&gt;is&lt;/EM&gt; throwing the error, make sure you are using the most current .net resource proxy code from github.&amp;nbsp; I've had clients simply replace the contents of the folder with the current Master branch and problems are resolved.&amp;nbsp;&amp;nbsp; This piece acts as a wrapper for your application, and if used properly, emulates a same-origin request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:23:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51149#M4506</guid>
      <dc:creator>BillGrow</dc:creator>
      <dc:date>2016-04-21T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51150#M4507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can confirm this is well. When troubleshooting a connectivity issue between WAB Dev and AGS server, the browser was throwing No Access-Control-Allow-Origin headers in the developer tools, but esri support indicated that error is commonplace and can be ignored. I had found a thread a while back that also said this can be ignored, but can't seem to find it right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 17:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51150#M4507</guid>
      <dc:creator>ColeAndrews</dc:creator>
      <dc:date>2016-04-21T17:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51151#M4508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just need to confirm the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The .Net resource proxy play no role when I experience the problem, but rather it can be used to bypass/fix my problem. I also use a very recent version for my secured services.&lt;/LI&gt;&lt;LI&gt;There is no server side error logged/vissible. The problem arrise when the browser look at the headers to decide if it is allowed to display it to you or not. (i.e. you see the message in the console section of your browser)&lt;/LI&gt;&lt;LI&gt;Something on the server add an additional header value for '&lt;SPAN style="color: #3d3d3d; font-family: Arial;"&gt;Access-Control-Allow-Origin&lt;/SPAN&gt;' that contain the orgin domain value (it change from where I made the call) - which sort of proove that it is not a fixed configuration value, but rather a configuration in IIS/the web adaptor that tell the server/ArcGIS to always add the orgin host value, whatever it might be.&lt;/LI&gt;&lt;LI&gt;It is definately not WAB - I could replicate the problem with a very basic Javascript API map that request a layer - it behave the exact same way as WAB.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert, I tried the '&lt;SPAN style="color: #3d3d3d; font-family: Arial;"&gt;&amp;lt;remove name="Access-Control-Allow-Origin" /&amp;gt;&lt;/SPAN&gt;', but it have no affect. What I do know is that the 'add' in the same web.config file for the web adaptor is used - any changes to replace the '*' value become visible in the multiple header's listed in the browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now, I will remove the '&amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;' from the adaptor's web.config and research it a bit more. All the access methods will keep on working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do acknowledge it is very likely a configuration on my server that cause this though, i just dont have an idea on where it can be. (Other than the web.config's in the IIS app/folder tree) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note my web adoptor version is: 10.4.0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:05:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51151#M4508</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2016-04-21T20:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51152#M4509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FYI, I use the &lt;SPAN style="text-decoration: underline;"&gt;remove&lt;/SPAN&gt; as the only thing in the custom headers section of my web.config I do not have it and some &lt;SPAN style="text-decoration: underline;"&gt;add&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51152#M4509</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-04-21T20:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: CORS and Web-Tier Secured Services</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51153#M4510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, yes I had it like that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did another test now - if I add '&amp;lt;add name="Access-Control-Allow-Origin" value="gert" /&amp;gt;' in the IIS root web.config, then it is indeed removed by the 'remove' in the web adaptor's web.config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as long as there is no '&amp;lt;add name="Access-Control-Allow-Origin" value="*" /&amp;gt;' in the web adaptor's web.config all is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sort of proove that the "phantom" header value is being set AFTER the web.config's are parsed/applied.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 20:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cors-and-web-tier-secured-services/m-p/51153#M4510</guid>
      <dc:creator>GertConradie</dc:creator>
      <dc:date>2016-04-21T20:29:37Z</dc:date>
    </item>
  </channel>
</rss>

