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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
abanafa
New Member

Power bi embeded (MVC) cross origin Error

 

Hello
I'm trying to embed a power bi report using the Azure Active directly Authentication

I registered the application in Azure and used Service Principle object to authenticate

 

then i take the token and access api.powerbi.com using PowerBi packege and I was able to embed my report succefully on localhost using ASP.Net MVC

 

but when publish to test server.. i get the 500 Error cross origin Error
Referrer Policy: strict-origin-when-cross-origin

please can you help me fix this?

thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @abanafa ,

 

As far as I know, I think you use app owns data to embed Power BI report by Service Principle.

You may refer to this offical blog to learn more details about Considerations and limitations when you using Service Principal as authentication method.

You can refer to this offical blog to learn more about how to Troubleshoot your embedded application

 

Best Regards,
Rico Zhou

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @abanafa ,

 

As far as I know, I think you use app owns data to embed Power BI report by Service Principle.

You may refer to this offical blog to learn more details about Considerations and limitations when you using Service Principal as authentication method.

You can refer to this offical blog to learn more about how to Troubleshoot your embedded application

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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