Forum Discussion
Power BI custom visual not sending Referer
- 5 months ago
Thank you for the prompt response! It's unfortunate to hear that there is no way of making custom visuals support referrer requests. We will have to try one of the work-arounds. Thank you again!
Hi Eduardo41523
Thanks for reaching out to Microsoft Fabric Coummunity Forum.
You’ve run into a limitation of the Power BI custom visual sandbox.
Custom visuals run inside a secured iframe, and this environment does not allow setting or overriding HTTP headers such as Referer. While the browser applies a referrer policy (for example strict-origin), the Power BI visual host further restricts what actually gets sent, so the Referer header is often not included.
Because of this, you cannot force a Referer header from within a custom visual. If a tile provider like OpenStreetMap requires a valid referrer, those requests may be blocked. This is by design for security reasons.
Workarounds:
Use a tile provider that supports API keys instead of referrer checks.
Consider services like Azure Maps or Mapbox.
Reference : Debug Power BI custom visuals - Power BI | Microsoft Learn
Hope this helps !!
Thank You.
Thank you for the prompt response! It's unfortunate to hear that there is no way of making custom visuals support referrer requests. We will have to try one of the work-arounds. Thank you again!
- v-aatheeque5 months agoCommunity Support
Hi Eduardo41523
Just checking in on this were you able to try one of the suggested workarounds for the custom visual referrer limitation?
Please let us know how it went or if you’re still facing any challenges. We’re happy to assist further if needed.
- v-aatheeque4 months agoCommunity Support
Hi Eduardo41523
Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.