Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
Im trying to publish areport on a webpage where i want it to be public without login.
When the already embedded power bi report is embedded in another external iframe, the requests sent by the PowerBI javascript-framework is blocked by the PowerBI api due to CORS.
Anyone has an answer for this? is it possible to this without PBI:s own publish on web with forced login ?
/Patrik
Solved! Go to Solution.
Hi @Kellef ,
To address your concern, there are a couple of approaches you can consider:
1.The most straightforward method to share your Power BI report publicly without requiring users to log in is by using the "Publish to web" feature. However, it's important to note that this method makes your data accessible to anyone on the Internet.
For more details, refer Publish to web from Power BI - Power BI | Microsoft Learn
2.If you're looking for a more integrated solution that allows for more control and customization, consider using Power BI Embedded. This approach involves generating an embed token using the Power BI REST API, which can be used to embed reports without requiring users to log in.
For more details, refer Power BI embedded analytics overview - Power BI | Microsoft Learn
Regarding the CORS issue, it's essential to understand that CORS is a security feature implemented by browsers to restrict web applications from making requests to domains other than the one from which the first script was served. If you encounter CORS issues due to security headers, you can explore adding the necessary headers to your server configuration. Ensure that your server responds with the appropriate Access-Control-Allow-Origin header to allow embedding from your domain.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you for youre feedback and response!
Hi @Kellef ,
To address your concern, there are a couple of approaches you can consider:
1.The most straightforward method to share your Power BI report publicly without requiring users to log in is by using the "Publish to web" feature. However, it's important to note that this method makes your data accessible to anyone on the Internet.
For more details, refer Publish to web from Power BI - Power BI | Microsoft Learn
2.If you're looking for a more integrated solution that allows for more control and customization, consider using Power BI Embedded. This approach involves generating an embed token using the Power BI REST API, which can be used to embed reports without requiring users to log in.
For more details, refer Power BI embedded analytics overview - Power BI | Microsoft Learn
Regarding the CORS issue, it's essential to understand that CORS is a security feature implemented by browsers to restrict web applications from making requests to domains other than the one from which the first script was served. If you encounter CORS issues due to security headers, you can explore adding the necessary headers to your server configuration. Ensure that your server responds with the appropriate Access-Control-Allow-Origin header to allow embedding from your domain.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
52 | |
50 | |
40 | |
40 |