cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Alex2000
New Member

How to embed powerbi report when having "Cross-Origin-Embedder-Policy"

We are trying to embed a powerbi report in our website, but the call to https://app.powerbi.com being blocked by one of the security headers we have. Which is (Cross-Origin-Embedder-Policy) 
I was wondering if there's a way to solve this issue without removing this policy 

 

Thanks 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @Alex2000 ,

 

According to your description, this is the browser part of the configuration.

vhenrykmstf_0-1658481481026.png

For more details, you can read related document.

Cross-Origin Embedder Policy - Report URI Documentation (report-uri.com)

Cross-Origin-Embedder-Policy - HTTP | MDN (mozilla.org)


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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
v-henryk-mstf
Community Support
Community Support

Hi @Alex2000 ,

 

According to your description, this is the browser part of the configuration.

vhenrykmstf_0-1658481481026.png

For more details, you can read related document.

Cross-Origin Embedder Policy - Report URI Documentation (report-uri.com)

Cross-Origin-Embedder-Policy - HTTP | MDN (mozilla.org)


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


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

Ran into the same issue. Should PowerBI not be including the Access-Control-Allow-Origin header to allow it to be embedded via CORS or similalry via a CORP policy? 


We are embedding PowerBI into a react app and followed this document: https://docs.microsoft.com/en-us/javascript/api/overview/powerbi/powerbi-client-react

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!