<?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: Web requests fail in custom visual when using Internet Explorer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Web-requests-fail-in-custom-visual-when-using-Internet-Explorer/m-p/1141235#M24017</link>
    <description>&lt;P&gt;I've created a minimal example of this error for testing, if anyone is willing to take a look at it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tarockx/PbiCustomVisualIeNetworkError" target="_blank"&gt;https://github.com/tarockx/PbiCustomVisualIeNetworkError&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jun 2020 09:15:17 GMT</pubDate>
    <dc:creator>Master_T</dc:creator>
    <dc:date>2020-06-04T09:15:17Z</dc:date>
    <item>
      <title>Web requests fail in custom visual when using Internet Explorer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Web-requests-fail-in-custom-visual-when-using-Internet-Explorer/m-p/1138441#M23985</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;In my custom visual, I have this piece of code that does an ajax call to our backend server, using jQuey:&lt;/P&gt;&lt;PRE&gt;$.ajax({
url: "https://localhost:9099/Auth/Ping",
method: "GET",
xhrFields: {
withCredentials: true
},
success: function(){ console.log("success");},
error: function(){ console.log("error");}
});&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Normally, this code works without problems even in Internet Explorer, I did a test and I can confirm that, in a normal webpage, this works perfectly in IE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I put it inside a PowerBI custom visual, the code fails and I get this error on the javascript console:&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.imgur.com/OiUf9hs.png" target="_self"&gt;https://i.imgur.com/OiUf9hs.png&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&lt;/P&gt;&lt;P&gt;I've checked the error code, but it's not much use, it indicates a generic "network error". Note that, again, on any other web page this works without issues in IE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The even wierder thing is, if I check the network tab, the request seems to have completed succesfully and without errors:&lt;/P&gt;&lt;P&gt;&lt;IMG border="0" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://i.imgur.com/gKnXMNe.png" target="_self"&gt;https://i.imgur.com/gKnXMNe.png&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the call is actually going through and returning correctly (code 200), but for some reason IE still considers it failed and stops the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has any idea of what is going on here? To summarize:&lt;/P&gt;&lt;P&gt;-This problem only occours when running this code in a PowerBI custom visual, using this code on a normal webpage doesn't have any issues&lt;BR /&gt;-This problem only occurs on Internet Explorer, other browsers behave correctly (what a surprise...)&lt;BR /&gt;-This is not a CORS issue, the server is correctly configured for CORS (and also, as I've already stated: this works on other browsers without errors)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDIT: just to rule it out, I tried using a normal&amp;nbsp;&lt;SPAN&gt;XMLHttpRequest instead of jQuery's "ajax" method, but I get the same exact error.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 09:59:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Web-requests-fail-in-custom-visual-when-using-Internet-Explorer/m-p/1138441#M23985</guid>
      <dc:creator>Master_T</dc:creator>
      <dc:date>2020-06-03T09:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web requests fail in custom visual when using Internet Explorer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Web-requests-fail-in-custom-visual-when-using-Internet-Explorer/m-p/1141235#M24017</link>
      <description>&lt;P&gt;I've created a minimal example of this error for testing, if anyone is willing to take a look at it:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tarockx/PbiCustomVisualIeNetworkError" target="_blank"&gt;https://github.com/tarockx/PbiCustomVisualIeNetworkError&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 09:15:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Web-requests-fail-in-custom-visual-when-using-Internet-Explorer/m-p/1141235#M24017</guid>
      <dc:creator>Master_T</dc:creator>
      <dc:date>2020-06-04T09:15:17Z</dc:date>
    </item>
  </channel>
</rss>

