<?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 CORS error when viewing Published PowerBI Report in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80229#M2832</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We are planning to embed PowerBI in an Angular2 app and have started publishing reports using the "Publish to Web" function.&lt;/P&gt;&lt;P&gt;When we load just the published url in the browser (eg.&amp;nbsp;&lt;A href="https://app.powerbi.com/view?r=eyJrIjoiM2QwOGU3YmMtMjlkNC" target="_blank"&gt;https://app.powerbi.com/view?r=eyJrIjoiM2QwOGU3YmMtMjlkNC&lt;/A&gt;....) we receive CORS errors in the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The errors displayed are purely from the PowerBI site with no extra embedding used.&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;&lt;EM&gt;XMLHttpRequest cannot load &lt;A href="https://wabi-south-east-asia-redirect.analysis.windows.net/powerbi/metadata/models" target="_blank"&gt;https://wabi-south-east-asia-redirect.analysis.windows.net/powerbi/metadata/models&lt;/A&gt;. Request header field X-PowerBI-ResourceKey is not allowed by Access-Control-Allow-Headers in preflight response&lt;/EM&gt;&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;These also occur multiple times after the load and sometimes causes the report to crash and then reload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this an issue with the report or configuration we are using, or is this a known issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 05:51:22 GMT</pubDate>
    <dc:creator>rpalexf</dc:creator>
    <dc:date>2016-10-20T05:51:22Z</dc:date>
    <item>
      <title>CORS error when viewing Published PowerBI Report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80229#M2832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We are planning to embed PowerBI in an Angular2 app and have started publishing reports using the "Publish to Web" function.&lt;/P&gt;&lt;P&gt;When we load just the published url in the browser (eg.&amp;nbsp;&lt;A href="https://app.powerbi.com/view?r=eyJrIjoiM2QwOGU3YmMtMjlkNC" target="_blank"&gt;https://app.powerbi.com/view?r=eyJrIjoiM2QwOGU3YmMtMjlkNC&lt;/A&gt;....) we receive CORS errors in the browser.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The errors displayed are purely from the PowerBI site with no extra embedding used.&lt;/P&gt;&lt;P&gt;"&lt;STRONG&gt;&lt;EM&gt;XMLHttpRequest cannot load &lt;A href="https://wabi-south-east-asia-redirect.analysis.windows.net/powerbi/metadata/models" target="_blank"&gt;https://wabi-south-east-asia-redirect.analysis.windows.net/powerbi/metadata/models&lt;/A&gt;. Request header field X-PowerBI-ResourceKey is not allowed by Access-Control-Allow-Headers in preflight response&lt;/EM&gt;&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;These also occur multiple times after the load and sometimes causes the report to crash and then reload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this an issue with the report or configuration we are using, or is this a known issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 05:51:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80229#M2832</guid>
      <dc:creator>rpalexf</dc:creator>
      <dc:date>2016-10-20T05:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when viewing Published PowerBI Report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80785#M2855</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/15781"&gt;@rpalexf﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't get that error when load the published url in a brower, could you try &lt;A href="https://msit.powerbi.com/view?r=eyJrIjoiNzAyMThlZGMtOTc4NS00YWM1LTkwOWYtYjYyNzVkZjdkODg2IiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsImMiOjV9" target="_self"&gt;this url&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;eg url is truncated, please post the completed one&amp;nbsp;so that I can test and try to reproduce the error.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 06:02:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80785#M2855</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-10-21T06:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when viewing Published PowerBI Report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80884#M2858</link>
      <description>&lt;P&gt;Thanks for the reponse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just tried your url in my browser and I get a CORS error in your URL.&lt;/P&gt;&lt;P&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;Failed to load resource: the server responded with a status of 404 (Resource Not Found)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;XMLHttpRequest cannot load &lt;A href="https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models" target="_blank"&gt;https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models&lt;/A&gt;. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;A href="https://msit.powerbi.com" target="_blank"&gt;https://msit.powerbi.com&lt;/A&gt;' is therefore not allowed access. The response had HTTP status code 404.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;Failed to load resource: the server responded with a status of 404 (Resource Not Found)&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;XMLHttpRequest cannot load &lt;A href="https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models" target="_blank"&gt;https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models&lt;/A&gt;. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;A href="https://msit.powerbi.com" target="_blank"&gt;https://msit.powerbi.com&lt;/A&gt;' is therefore not allowed access. The response had HTTP status code 404.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;EM&gt;Failed to load resource: the server responded with a status of 404 (Resource Not Found)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I work in Australia, so maybe the CDN where the JS is hosted is not a trusted site for the .com domain.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;But I cant be sure.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I also tested your URL in Edge and have the same issue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Here is the stack track from Chrome;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ai.0.js:1 OPTIONS &lt;A href="https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models" target="_blank"&gt;https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models&lt;/A&gt; XMLHttpRequest.send @ ai.0.js:1(anonymous function) @ powerbiportal.dependencies.bundle.min.js:115n @ powerbiportal.dependencies.bundle.min.js:111(anonymous function) @ powerbiportal.dependencies.bundle.min.js:108(anonymous function) @ powerbiportal.dependencies.bundle.min.js:143$eval @ powerbiportal.dependencies.bundle.min.js:157$digest @ powerbiportal.dependencies.bundle.min.js:154$apply @ powerbiportal.dependencies.bundle.min.js:158(anonymous function) @ powerbiportal.dependencies.bundle.min.js:171e @ powerbiportal.dependencies.bundle.min.js:57(anonymous function) @ powerbiportal.dependencies.bundle.min.js:60&lt;BR /&gt;view?r=eyJrIjoiNzAyMThlZGMtOTc4NS00YWM1LTkwOWYtYjYyNzVkZjdkODg2IiwidCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05…:1 XMLHttpRequest cannot load &lt;A href="https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models" target="_blank"&gt;https://df-msit-scus-api.analysis.windows.net/powerbi/metadata/models&lt;/A&gt;. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '&lt;A href="https://msit.powerbi.com" target="_blank"&gt;https://msit.powerbi.com&lt;/A&gt;' is therefore not allowed access. The response had HTTP status code 404.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Is there anything else I can try here?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks again for your time,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Alex&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2016 09:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/80884#M2858</guid>
      <dc:creator>rpalexf</dc:creator>
      <dc:date>2016-10-21T09:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: CORS error when viewing Published PowerBI Report</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/81461#M2886</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/15781"&gt;@rpalexf﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for that clarification. I can verify that the url can be accessed&amp;nbsp;from China and USA.&lt;BR /&gt;As I don't have much knowledge on CDN, I'd suggest you&amp;nbsp;&lt;A href="https://ideas.powerbi.com/forums/360879-issues" target="_self"&gt;submit that issue&lt;/A&gt; and&amp;nbsp;ask &lt;A href="https://powerbi.microsoft.com/en-us/support/pro/" target="_self"&gt;MS for support&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 08:53:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/CORS-error-when-viewing-Published-PowerBI-Report/m-p/81461#M2886</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-10-24T08:53:35Z</dc:date>
    </item>
  </channel>
</rss>

