Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Kellef
Helper I
Helper I

Publish report public on the web without login

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

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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. 

View solution in original post

2 REPLIES 2
Kellef
Helper I
Helper I

thank you for youre feedback and response!

Anonymous
Not applicable

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. 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.