<?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 Error website javascript in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-website-javascript/m-p/144367#M4963</link>
    <description>&lt;P&gt;Hi, i have done a website in javascript where i put into a PowerBI report.&lt;/P&gt;&lt;P&gt;When i run the website i receive this mistake:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://df-msit-scus-redirect.analysis.windows.net/metadata/cluster" target="_blank"&gt;https://df-msit-scus-redirect.analysis.windows.net/metadata/cluster&lt;/A&gt; Forbidden 403&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var embedConfiguration = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;type: 'report',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;accessToken: access_token,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;id: '73ebfbec-7cxxxxx08638c90',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; embedUrl: '&lt;A href="https://msit.powerbi.com/reportEmbed" target="_blank"&gt;https://msit.powerbi.com/reportEmbed&lt;/A&gt;'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what can i do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2017 12:02:43 GMT</pubDate>
    <dc:creator>marcobaciga</dc:creator>
    <dc:date>2017-03-17T12:02:43Z</dc:date>
    <item>
      <title>Error website javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-website-javascript/m-p/144367#M4963</link>
      <description>&lt;P&gt;Hi, i have done a website in javascript where i put into a PowerBI report.&lt;/P&gt;&lt;P&gt;When i run the website i receive this mistake:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://df-msit-scus-redirect.analysis.windows.net/metadata/cluster" target="_blank"&gt;https://df-msit-scus-redirect.analysis.windows.net/metadata/cluster&lt;/A&gt; Forbidden 403&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var embedConfiguration = {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;type: 'report',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;accessToken: access_token,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;id: '73ebfbec-7cxxxxx08638c90',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; embedUrl: '&lt;A href="https://msit.powerbi.com/reportEmbed" target="_blank"&gt;https://msit.powerbi.com/reportEmbed&lt;/A&gt;'&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what can i do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 12:02:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-website-javascript/m-p/144367#M4963</guid>
      <dc:creator>marcobaciga</dc:creator>
      <dc:date>2017-03-17T12:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error website javascript</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-website-javascript/m-p/145187#M4984</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/14418"&gt;@marcobaciga&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Ensure that the token is not expired. I test with a html and it works.&lt;/P&gt;
&lt;P&gt;For your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;html&amp;gt;

 &amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"&amp;gt;&amp;lt;/script&amp;gt;

&amp;lt;script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"&amp;gt;&amp;lt;/script&amp;gt;
 
&amp;lt;script type="text/javascript"&amp;gt;
window.onload = function () {  
 

var embedConfiguration = {
    type: 'report',
    accessToken: ' a valid token',    
	id: 'd99e763f-1dae-4xxxx1-d958313fd3f8',
    embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=d99e763fxxxae-4xxxx313fd3f8' 

}; 
 

var $reportContainer = $('#reportContainer');
 
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);

&amp;lt;!--validateReportLoad incorrectly returns schema errors for valid filters #16https://github.com/Microsoft/powerbi-models/issues/16--&amp;gt;

report.on('loaded', function() {
console.log('report.on - loaded');
});

}
&amp;lt;/script&amp;gt;

&amp;lt;div id="reportContainer" powerbi-settings-nav-content-pane-enabled="true"   powerbi-settings-filter-pane-enabled="true"&amp;gt;&amp;lt;/div&amp;gt;

&amp;lt;/html&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For testing purpose, you can get a token in a quick way following &lt;A href="https://community.fabric.microsoft.com/t5/Developer/HTTP-api-powered-com/m-p/137056" target="_self"&gt;this thread&lt;/A&gt;. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 07:22:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-website-javascript/m-p/145187#M4984</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2017-03-20T07:22:24Z</dc:date>
    </item>
  </channel>
</rss>

