<?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 Webtier Security, CORS, AGOL, HTTP 401 and 502 errors. in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/webtier-security-cors-agol-http-401-and-502-errors/m-p/460165#M23202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;As you see from the title this post has all the ingredients to make it interesting enough&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting some errors while trying to access from &lt;STRONG&gt;AGOL&lt;/STRONG&gt; some Arcgis 10.2.2 services published through WebAdaptor using &lt;STRONG&gt;Webtier security&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Same thing is happening on IE, CHROME, FIREFOX browsers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the errors only appear when using Webtier authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-) Create and publish a mapservice which includes a featureclass and a related table.&lt;/P&gt;&lt;P&gt;2-) Create an AGOL map or open an existing one.&lt;/P&gt;&lt;P&gt;3-) When that mapservice is added to that map the requested url fails with error "&lt;SPAN style="color: #e23d39;"&gt;401 Unauthorized&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername.com%2Farcgis%2Frest%2Finfo%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://servername.com/arcgis/rest/info?f=json&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error401.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/148537_Error401.png" style="width: 620px; height: 446px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see from the image we have configured the web.config of the IIS where the webadaptor is running to use CORS. The &lt;STRONG&gt;origin&lt;/STRONG&gt; sent by the browser matches the &lt;STRONG&gt;origin&lt;/STRONG&gt; declared on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4-) After that the feature layer shows fine on the map.&lt;/P&gt;&lt;P&gt;5-) The other error raises when the select to configure the Popup for the Related Table.&amp;nbsp; Here we get the error "&lt;SPAN style="color: #e23d39;"&gt;502 Bad Gateway&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error502.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/148538_Error502.png" style="width: 620px; height: 530px;" /&gt;&lt;/P&gt;&lt;P&gt;After the 502 error the user can't change the popup configuration and that is a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that on the second request AGOL uses a proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Nov 2015 12:51:44 GMT</pubDate>
    <dc:creator>BledarBirbo1</dc:creator>
    <dc:date>2015-11-26T12:51:44Z</dc:date>
    <item>
      <title>Webtier Security, CORS, AGOL, HTTP 401 and 502 errors.</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webtier-security-cors-agol-http-401-and-502-errors/m-p/460165#M23202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;As you see from the title this post has all the ingredients to make it interesting enough&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting some errors while trying to access from &lt;STRONG&gt;AGOL&lt;/STRONG&gt; some Arcgis 10.2.2 services published through WebAdaptor using &lt;STRONG&gt;Webtier security&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Same thing is happening on IE, CHROME, FIREFOX browsers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the errors only appear when using Webtier authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-) Create and publish a mapservice which includes a featureclass and a related table.&lt;/P&gt;&lt;P&gt;2-) Create an AGOL map or open an existing one.&lt;/P&gt;&lt;P&gt;3-) When that mapservice is added to that map the requested url fails with error "&lt;SPAN style="color: #e23d39;"&gt;401 Unauthorized&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservername.com%2Farcgis%2Frest%2Finfo%3Ff%3Djson" rel="nofollow" target="_blank"&gt;https://servername.com/arcgis/rest/info?f=json&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error401.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/148537_Error401.png" style="width: 620px; height: 446px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see from the image we have configured the web.config of the IIS where the webadaptor is running to use CORS. The &lt;STRONG&gt;origin&lt;/STRONG&gt; sent by the browser matches the &lt;STRONG&gt;origin&lt;/STRONG&gt; declared on the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4-) After that the feature layer shows fine on the map.&lt;/P&gt;&lt;P&gt;5-) The other error raises when the select to configure the Popup for the Related Table.&amp;nbsp; Here we get the error "&lt;SPAN style="color: #e23d39;"&gt;502 Bad Gateway&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error502.png" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/148538_Error502.png" style="width: 620px; height: 530px;" /&gt;&lt;/P&gt;&lt;P&gt;After the 502 error the user can't change the popup configuration and that is a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that on the second request AGOL uses a proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to solve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 12:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webtier-security-cors-agol-http-401-and-502-errors/m-p/460165#M23202</guid>
      <dc:creator>BledarBirbo1</dc:creator>
      <dc:date>2015-11-26T12:51:44Z</dc:date>
    </item>
  </channel>
</rss>

