<?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: 403 forbidden error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/62682#M1996</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13338"&gt;@soopicool﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How did you pass the &lt;A href="https://channel9.msdn.com/Blogs/MostafaElzoghbi/Power-BI-Embedded-Explained-Part-3?ocid=EntriesInArea" target="_self"&gt;dev token&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Aug 2016 09:53:49 GMT</pubDate>
    <dc:creator>Eric_Zhang</dc:creator>
    <dc:date>2016-08-26T09:53:49Z</dc:date>
    <item>
      <title>403 forbidden error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/62186#M1987</link>
      <description>&lt;P&gt;&amp;nbsp;I am trying to embedd my power bi report in wordpress site using "Power BI Embedded".&lt;/P&gt;&lt;P&gt;I am using Azure free account on which I have created the workspace collection, workspace and also imported the report into the workspace.&lt;/P&gt;&lt;P&gt;Now I need to put PHP code in my website for embedding the report before that I need to get "report id", so for that I am using the API request &amp;nbsp;"Get&amp;nbsp;&lt;A href="https://api.powerbi.com/v1.0/collections/[CollectionName]/workspaces/7[workspaceID]/reports" target="_blank"&gt;https://api.powerbi.com/v1.0/collections/[CollectionName]/workspaces/7[workspaceID]/reports&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;I am running this request in "Postman" Chrome app to get the http response but it is giving "403 forbidden" error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 10:44:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/62186#M1987</guid>
      <dc:creator>soopicool</dc:creator>
      <dc:date>2016-08-25T10:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: 403 forbidden error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/62682#M1996</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/13338"&gt;@soopicool﻿&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;How did you pass the &lt;A href="https://channel9.msdn.com/Blogs/MostafaElzoghbi/Power-BI-Embedded-Explained-Part-3?ocid=EntriesInArea" target="_self"&gt;dev token&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2016 09:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/62682#M1996</guid>
      <dc:creator>Eric_Zhang</dc:creator>
      <dc:date>2016-08-26T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: 403 forbidden error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/64011#M2028</link>
      <description>&lt;P&gt;I have generated the developer token in php and then passed it in javascript code in Iframe with the help of PHP variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&amp;lt;?PHP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$apptoken = ....&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;button id="btnView"&amp;gt;View Report !&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;div id="divView"&amp;gt;&lt;BR /&gt;&amp;lt;iframe id="ifrTile" width="100%" height="400"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;(function () {&lt;BR /&gt;document.getElementById('btnView').onclick = function() {&lt;BR /&gt;var iframe = document.getElementById('ifrTile');&lt;BR /&gt;iframe.src='&lt;A href="https://embedded.powerbi.com/appTokenReportEmbed?reportId=2d4210c6-be8b-4bf9-8cd4-134f99a0c1fa" target="_blank"&gt;https://embedded.powerbi.com/appTokenReportEmbed?reportId=2d4210c6-be8b-4bf9-8cd4-134f99a0c1fa&lt;/A&gt;';&lt;BR /&gt;iframe.onload = function() {&lt;BR /&gt;var msgJson = {&lt;BR /&gt;action: "loadReport",&lt;BR /&gt;accessToken: "&amp;lt;?=$apptoken?&amp;gt;",&lt;BR /&gt;height: 500,&lt;BR /&gt;width: 722&lt;BR /&gt;};&lt;BR /&gt;var msgTxt = JSON.stringify(msgJson);&lt;BR /&gt;iframe.contentWindow.postMessage(msgTxt, "*");&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;}());&lt;BR /&gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I debugged the code I found that the token gets generated fine in PHP but when I access PHP variable in javascript code the value is not shown. The value is not transfered from appken to accessToken.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think some where I am not properly using the PHP variable in javascript.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 08:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/403-forbidden-error/m-p/64011#M2028</guid>
      <dc:creator>soopicool</dc:creator>
      <dc:date>2016-08-31T08:22:21Z</dc:date>
    </item>
  </channel>
</rss>

