<?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: React - Embed Power Bi in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2675310#M37674</link>
    <description>&lt;P&gt;I forgot to mention that we tried through Postman too and we succeded in getting a response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, solutions like disabling-web-security, adding extensions to browsers and removing CORS policy from our app, are out of the question.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 10:39:18 GMT</pubDate>
    <dc:creator>s_papaioannou</dc:creator>
    <dc:date>2022-08-02T10:39:18Z</dc:date>
    <item>
      <title>React - Embed Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2675092#M37672</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to embed a power bi report in a React application? We have followed quite a lot documentation procedures on how to embed in our app, but we are getting blocked by CORS Policy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to mention our current state, we have done the following :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create an azure portal subscription&lt;/P&gt;&lt;P&gt;Create an A.A.D&lt;/P&gt;&lt;P&gt;Create Power Bi Pro &lt;SPAN&gt;license&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power BI Admin Portal&amp;nbsp;access&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create a Service Principal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Registered new app in Azure Portal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Got Application ID, Tenenat ID, PowerBi Secret value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Create a Security Group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added the&amp;nbsp;App Registration&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Configured Power BI Tenant to allow embedding&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added the security group housing the service principal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Allowed service principles to use Power BI APIs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Enabled Azure AD App to access the reports in my workspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Add our security group&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Created Function APP with .NET Runtime stack&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Generated the Embed Token&amp;nbsp;using the HTTP Trigger succesfully&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added "powerbi-client" +&amp;nbsp;"powerbi-client-react"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Created a Power BI Capacity in our Subscription&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nonetheless, it will return this error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Access to XMLHttpRequest at '&lt;A title="https://reactpowerbifunction.azurewebsites.net/api/HttpReactBi?code=_WR9DewMuSxCcVuQjUVVnv0AArLt2CR0QR7ZR7pp_8QdAzFu5PWiyQ==%27" href="https://reactpowerbifunction.azurewebsites.net/api/HttpReactBi?code=_WR9DewMuSxCcVuQjUVVnv0AArLt2CR0QR7ZR7pp_8QdAzFu5PWiyQ==%27" target="_blank" rel="noopener noreferrer"&gt;https://reactpowerbifunction.azurewebsites.net/api/HttpReactBi?code=_****=='&lt;/A&gt;&amp;nbsp;from origin '&lt;A title="http://localhost:3000%27" target="_blank" rel="noreferrer noopener"&gt;http://localhost:3000'&lt;/A&gt;&amp;nbsp;has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you know if it is possible to make it work ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:28:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2675092#M37672</guid>
      <dc:creator>s_papaioannou</dc:creator>
      <dc:date>2022-08-02T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: React - Embed Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2675310#M37674</link>
      <description>&lt;P&gt;I forgot to mention that we tried through Postman too and we succeded in getting a response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, solutions like disabling-web-security, adding extensions to browsers and removing CORS policy from our app, are out of the question.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 10:39:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2675310#M37674</guid>
      <dc:creator>s_papaioannou</dc:creator>
      <dc:date>2022-08-02T10:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: React - Embed Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2683309#M37733</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/348374"&gt;@s_papaioannou&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this a problem about HTML protocol.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cross-Origin Resource Sharing (CORS) is used to permit loading of resources on other origins, such as a domain, protocol, or port, via HTTP headers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vchenwuzmsft_0-1659678712348.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/760426iBADF1E7FE4C2C77F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vchenwuzmsft_0-1659678712348.png" alt="vchenwuzmsft_0-1659678712348.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can refer this link.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#:~:text=This%20operation%20performs%20a%20simple%20exchange%20between%20the%20client%20and%20the%20server%2C%20using%20CORS%20headers%20to%20handle%20the%20privileges%3A" target="_blank" rel="noopener"&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 05:53:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2683309#M37733</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-08-05T05:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: React - Embed Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2683513#M37737</link>
      <description>&lt;P&gt;Thank you for your clarification!&lt;/P&gt;&lt;P&gt;Is it possible to to get the REST API in NODE.JS ? I stumbled upon this repository and I am a bit at loss on what is going on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here it says that :&amp;nbsp;&lt;STRONG&gt;Node SDK is not supported any more. The Node SDK is no longer supported. If you are interested in this SDK, and would like to see it continue, please vote for it on&amp;nbsp;&lt;A href="https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/20566726-power-bi-nodejs-sdk" rel="nofollow" target="_blank"&gt;the Power BI ideas site&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that in this link -&amp;gt; &lt;A href="https://github.com/Microsoft/PowerBI-Node" target="_blank"&gt;https://github.com/Microsoft/PowerBI-Node&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what is going on? Is it supported or not ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 07:31:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/React-Embed-Power-Bi/m-p/2683513#M37737</guid>
      <dc:creator>s_papaioannou</dc:creator>
      <dc:date>2022-08-05T07:31:26Z</dc:date>
    </item>
  </channel>
</rss>

