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.