<?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: Can't apply edits to feature layer; 401 Unauthorized error in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48264#M1355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a minor success by adding the following proxy information to the config.json in a copy of my app deployed on the web server hosting the Portal web adapter (copied from an app created in and downloaded from Portal):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"httpProxy": {
&amp;nbsp; "useProxy": true,
&lt;SPAN&gt;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fportal.domain.local%2Farcgis%2Fsharing%2Fproxy" target="_blank"&gt;https://portal.domain.local/arcgis/sharing/proxy&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proxy above doesn't work at all for the apps in Web AppBuilder, or those I've deployed to my local IIS server. Is there anyway I can configure web app builder with this proxy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:51:51 GMT</pubDate>
    <dc:creator>AndyE</dc:creator>
    <dc:date>2021-12-10T21:51:51Z</dc:date>
    <item>
      <title>Can't apply edits to feature layer; 401 Unauthorized error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48263#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having issues editing my feature service through a custom web app created with the developer version of web app builder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a feature service in ArcGIS server, which I've added to my Portal as a feature layer, and then added to a web map. I can edit everything at this point without any errors, creating and updating features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create an app in Portal, and still be able to edit everything without any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as I add this web map to an app built in the developer version of Web App Builder, using the standard edit widget. If I try and create or edit features I get 401 Unauthorized errors in Web AppBuilder:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;&lt;SPAN&gt;POST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fmymachine.domain.local%3A3344%2Fproxy.js%3Fhttps%3A%2F%2Farcserver.domain.local%2Farcgis%2Frest%2Fservices%2FTest%2FTEST_Edits%2FFeatureServer%2F0%2FapplyEdits" rel="nofollow" target="_blank"&gt;https://mymachine.domain.local:3344/proxy.js?https://arcserver.domain.local/arcgis/rest/services/Test/TEST_Edits/FeatureServer/0/applyEdits&lt;/A&gt;&lt;SPAN&gt; 401 (Unauthorized)&lt;/SPAN&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I deploy the app to a web server I get this error:&lt;/P&gt;&lt;P&gt;"&lt;EM&gt;&lt;SPAN&gt;XMLHttpRequest cannot load https:/?&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Farcserver.domain.local%2Farcgis%2Frest%2Fservices%2FTest%2FTEST_Edits%2FFeatureServer%2F0%2FapplyEdits" rel="nofollow" target="_blank"&gt;https://arcserver.domain.local/arcgis/rest/services/Test/TEST_Edits/FeatureServer/0/applyEdits&lt;/A&gt;&lt;SPAN&gt;. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.&lt;/SPAN&gt;&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using Windows authentication in both ArcGIS server and Portal with no signing in required. I can see all my content in the Web AppBuilder, including secured services. I have set up all my sites to use windows authentication in IIS and added CORS settings to every web.config file I can find (portal web adapter, arcgis server web adapter, and my app).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anywhere I can look for logs files that might indicate why I can't edit from my custom web apps?&lt;/P&gt;&lt;P&gt;Does anyone know how can I get my custom Web Apps to work with my feature services?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2015 17:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48263#M1354</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2015-10-20T17:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't apply edits to feature layer; 401 Unauthorized error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48264#M1355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've had a minor success by adding the following proxy information to the config.json in a copy of my app deployed on the web server hosting the Portal web adapter (copied from an app created in and downloaded from Portal):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;"httpProxy": {
&amp;nbsp; "useProxy": true,
&lt;SPAN&gt;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fportal.domain.local%2Farcgis%2Fsharing%2Fproxy" target="_blank"&gt;https://portal.domain.local/arcgis/sharing/proxy&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The proxy above doesn't work at all for the apps in Web AppBuilder, or those I've deployed to my local IIS server. Is there anyway I can configure web app builder with this proxy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48264#M1355</guid>
      <dc:creator>AndyE</dc:creator>
      <dc:date>2021-12-10T21:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't apply edits to feature layer; 401 Unauthorized error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48265#M1356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you fix&amp;nbsp;that issue? I have the same problem. I've tried what Andy suggested below and now the "&lt;SPAN style="background-color: #ffffff;"&gt;401 Unauthorized" error disappeared&amp;nbsp;but&amp;nbsp;&lt;/SPAN&gt;I get a very descriptive&amp;nbsp;error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;init.js:182 Error: Unable to complete operation.(…)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create features on a SQL 2012 database using the editor widget. Any help ? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 16:59:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48265#M1356</guid>
      <dc:creator>StephenBamford</dc:creator>
      <dc:date>2016-10-04T16:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can't apply edits to feature layer; 401 Unauthorized error</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48266#M1357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this is exactly the same issue, but I ran into&amp;nbsp;the 401 error with a feature service on a non-federated ArcGIS server set up&amp;nbsp;for web tier authentication (IWA).&amp;nbsp; The widget worked fine in IIS*, but in Web AppBuilder (Developer Edition) I would get the error.&amp;nbsp; I finally found the solution here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/web-appbuilder/guide/work-with-web-tier-anthentication.htm" title="https://developers.arcgis.com/web-appbuilder/guide/work-with-web-tier-anthentication.htm"&gt;Web-tier authentication—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I added the server name to the authorizedCrossOriginDomains array in the app's config.json, the problem went away.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*[Probably because it's on the same server as the feature service]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2018 20:21:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/can-t-apply-edits-to-feature-layer-401/m-p/48266#M1357</guid>
      <dc:creator>MarkCederholm</dc:creator>
      <dc:date>2018-08-17T20:21:57Z</dc:date>
    </item>
  </channel>
</rss>

