<?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: Add From File (KML) in Add Data widget blocked by CORS  - proxy not working in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-from-file-kml-in-add-data-widget-blocked-by/m-p/794645#M4484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like it might be the security settings in Chrome. Have you tried with IE?&lt;/P&gt;&lt;P&gt;You can bypass Chrome security with the following command -&amp;nbsp;start chrome.exe --disable-web-security&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2019 05:13:06 GMT</pubDate>
    <dc:creator>shaylavi</dc:creator>
    <dc:date>2019-12-23T05:13:06Z</dc:date>
    <item>
      <title>Add From File (KML) in Add Data widget blocked by CORS  - proxy not working</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-from-file-kml-in-add-data-widget-blocked-by/m-p/794644#M4483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am using the Add Data widget in several apps.&amp;nbsp; When adding a KML via the drop, it works in my workspace environment where I don't require a proxy to access the services.&amp;nbsp; When the app is deployed to Test/Prod environments is uses the Esri resource-proxy to access the secured services, webmap, etc.&amp;nbsp; I have rules in the proxy configured for&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;A class="link-titled" href="https://mydomain/portal/sharing" title="https://mydomain/portal/sharing"&gt;https://mydomain/portal/sharing&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A class="link-titled" href="https://mydomain/arcgis/rest/services" title="https://mydomain/arcgis/rest/services"&gt;https://mydomain/arcgis/rest/services&lt;/A&gt;&amp;nbsp; which works for everything except this.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;There browser error I get looks like this:&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;(index):1 Access to XMLHttpRequest at 'https://mydomain/portal/sharing/kml' from origin 'https://appdomain' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.&lt;BR /&gt;AddFromFilePane.js?wab_dv=2.10:387 Unable to load KML&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;.&lt;/DIV&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;I've narrowed this down to the widget's use / lack of use of the proxy by disabling it temporarily (and ignoring layer load errors) and it does work when deployed to those web servers.&amp;nbsp; What I don't get is that in both the working and problem environments, the requests look exactly the same in the network tab, so I'm not sure what is wrong.&amp;nbsp; Any advice?&amp;nbsp; Thanks!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 20:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-from-file-kml-in-add-data-widget-blocked-by/m-p/794644#M4483</guid>
      <dc:creator>JoeRogan</dc:creator>
      <dc:date>2019-12-13T20:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add From File (KML) in Add Data widget blocked by CORS  - proxy not working</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-from-file-kml-in-add-data-widget-blocked-by/m-p/794645#M4484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like it might be the security settings in Chrome. Have you tried with IE?&lt;/P&gt;&lt;P&gt;You can bypass Chrome security with the following command -&amp;nbsp;start chrome.exe --disable-web-security&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 05:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-from-file-kml-in-add-data-widget-blocked-by/m-p/794645#M4484</guid>
      <dc:creator>shaylavi</dc:creator>
      <dc:date>2019-12-23T05:13:06Z</dc:date>
    </item>
  </channel>
</rss>

