Issue Description:
When you create embed codes with Publish to web and paste into a website, you may not get the full URL using the share button on chromium based browsers.
Environment:
Power BI Service version 13.0.15639.18
Repro Steps:
- Create embed codes with Publish to web
- Copy the HTML and paste it into a website
- Open the web page with Microsoft Edge or Chrome
- Click the Share icon
- Check the Share Url
For example, when embedding into a web page https://www.contoso.com/example.html,
the Share Url is displayed as https://www.contoso.com/ rather than the full URL.
You may test it by opening link https://community.powerbi.com/t5/Data-Stories-Gallery/COVID-19-NSW-Transport-Impact/td-p/1193474.
Workaround:
Since this is caused by the updated default referrer policy of third party design change (chromium based browsers), the workaround here is to use ‘no-referrer-when-downgrade’ policy in your report embed HTML. So that it will override browser’s default referrer policy.
<iframe width=”800″ height=”600″ frameborder=”0″ referrerpolicy=”no-referrer-when-downgrade” src=”https://app.powerbi.com/view?r=eyJrIjoiNzcxNTdlY2ItYjFhYS00YjkyLThkMmEtMTQwYjVlYzExNjA0IiwidCI6ImQyYWY4YjViLTlhN2UtNGM4NS1hM2ZkLWI2OWE2Njk4YjdkNiJ9″></iframe >
Author: Sam Zha
Reviewer: Zoey Huan
Be the first to comment