<?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: Access Control Allow Origin - Portal + Hosting Server in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/1104627#M31231</link>
    <description>&lt;P&gt;We are having the same issue in 10.8.1. Did you find out the issue?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Oct 2021 02:18:13 GMT</pubDate>
    <dc:creator>DeanHowell1</dc:creator>
    <dc:date>2021-10-05T02:18:13Z</dc:date>
    <item>
      <title>Access Control Allow Origin - Portal + Hosting Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51773#M1874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This&amp;nbsp;@#$# issue is making me crazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a Portal instance, using the distributed model:&lt;/P&gt;&lt;P&gt;1 Portal machine, with Web Adaptor&lt;/P&gt;&lt;P&gt;1 Federated and hosting server with Web Adaptor. - the federation validates successfully, and I see items published there directly in my content in Portal)&lt;/P&gt;&lt;P&gt;1 server for Datastore (not really in play for this issue, I don't think)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I published a bunch of layers as REFERENCED feature layers through the hosting server (we need the data to be live).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These layers will not draw on a map - 'Access-Control-Allow-Origin' has no value.&amp;nbsp; So, on the Portal server, I go in to IIS, at the web adaptor level, and add 'Access-Control-Allow-Origin' with a value of * - it then says this is not allowed either if credentials are being passed (I think that's what the message means) -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm about to give up, move to the country, make an honest living.&amp;nbsp; The Access Control Allow Origin issue comes up from time to time, and I simply cannot find a real solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried adding the header at all levels of IIS&amp;nbsp;(default website, web adaptor level, machine name level) - currently, for testing, there are no entries on IIS on either the hosting server or the Portal server, and no custom headers in the webconfig file at wwwroot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are enforcing HTTPS only in the portal site, certificates all in place and bound in IIS, plus the root/intermediate ones uploaded into Portal/Server Admin pages, and neither Portal nor Server are using the default self-signed certs - both using the same wildcard domain certs that are our standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm at a complete loss to make this work, much less know where to look for what the best practice is.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight is hugely appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2019 17:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51773#M1874</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2019-05-28T17:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Access Control Allow Origin - Portal + Hosting Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51774#M1875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of ArcGIS? I would not apply CORS handling at the iis tier for 10.6+ in my experience. Have you added any servers to the trusted server list in Portal? Are the CORS errors happening across all clients &amp;amp; domains, or only a subset? In he response headers, you want to be seeing access-control-allow-credentials set to true and access-control-allow-origin the appropriate FQDN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2019 02:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51774#M1875</guid>
      <dc:creator>AngusHooper1</dc:creator>
      <dc:date>2019-05-29T02:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Access Control Allow Origin - Portal + Hosting Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51775#M1876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't add CORS headers at the web tier. CORS is supported at the GIS Server and Portal tier. By default allowed origins are set to allow *.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 13:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51775#M1876</guid>
      <dc:creator>RandallWilliams</dc:creator>
      <dc:date>2019-05-30T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Access Control Allow Origin - Portal + Hosting Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51776#M1877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;- We're using 10.6.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;- No trusted servers added - my understanding is that is only needed in cases where Portal needs to access map/feature services from ArcServer machines that use web-tier security, which is not in play here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting development - when I share these layers that were throwing the 'layers cannot be added to map' errors in Portal (and showing the CORS blocking/Access-Control-Allow-Origin error in dev. tools) with everyone, they draw on the map.&amp;nbsp; What's odd about this is that I am both the owner of these items in Portal as well as an administrator, so sharing shouldn't make a difference in what I can and can't access for these particular layers - they are in my content after all.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes me think it's an issue with security, and passing credentials between the federated/hosting server and the Portal server.&amp;nbsp; This is frustrating because typically I have seen that federation should handle this seamlessly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Angus and Randall for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51776#M1877</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2019-05-30T15:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Access Control Allow Origin - Portal + Hosting Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51777#M1878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Allen, did you ever find a solution to this?&amp;nbsp; I too am ready to move to the country and make an honest living due to the same issue...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:44:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/51777#M1878</guid>
      <dc:creator>SeanO_Neill</dc:creator>
      <dc:date>2019-12-13T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Access Control Allow Origin - Portal + Hosting Server</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/1104627#M31231</link>
      <description>&lt;P&gt;We are having the same issue in 10.8.1. Did you find out the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 02:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/access-control-allow-origin-portal-hosting-server/m-p/1104627#M31231</guid>
      <dc:creator>DeanHowell1</dc:creator>
      <dc:date>2021-10-05T02:18:13Z</dc:date>
    </item>
  </channel>
</rss>

