<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Power BI custom visual not sending Referer in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135496#M64737</link>
    <description>&lt;P&gt;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!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2026 10:17:04 GMT</pubDate>
    <dc:creator>Eduardo41523</dc:creator>
    <dc:date>2026-03-19T10:17:04Z</dc:date>
    <item>
      <title>Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135378#M64730</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I’m developing a custom visual using React + Leaflet, and I’m trying to load OpenStreetMap tiles: The tiles are being blocked with: “Access blocked - Referrer is required by tile usage policy”. From DevTools, I can see: The &lt;IMG border="0" /&gt; elements include referrerpolicy="strict-origin" Chrome shows Referrer Policy: strict-origin in the General section However, no Referer header is actually sent in the request. The response includes x-blocked: Access denied. This is running inside a Power BI custom visual.&lt;BR /&gt;&lt;BR /&gt;Are custom visuals able to send a Referer header with external requests, or is this restricted by the Power BI visual environment? If it is restricted, is there any supported way to include a referrer?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 05:46:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135378#M64730</guid>
      <dc:creator>Eduardo41523</dc:creator>
      <dc:date>2026-03-19T05:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135469#M64736</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1440382"&gt;@Eduardo41523&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for reaching out to Microsoft Fabric Coummunity Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You’ve run into a limitation of the Power BI custom visual sandbox.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;
&lt;P&gt;Workarounds:&lt;/P&gt;
&lt;P&gt;Use a tile provider that supports API keys instead of referrer checks.&lt;/P&gt;
&lt;P&gt;Consider services like Azure Maps or Mapbox.&lt;BR /&gt;Reference :&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/visuals-how-to-debug?tabs=Edge" target="_blank"&gt;Debug Power BI custom visuals - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps !!&lt;BR /&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 09:44:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135469#M64736</guid>
      <dc:creator>v-aatheeque</dc:creator>
      <dc:date>2026-03-19T09:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135496#M64737</link>
      <description>&lt;P&gt;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!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2026 10:17:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5135496#M64737</guid>
      <dc:creator>Eduardo41523</dc:creator>
      <dc:date>2026-03-19T10:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5139977#M64783</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1440382"&gt;@Eduardo41523&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="86" data-end="209"&gt;Just checking in on this were you able to try one of the suggested workarounds for the custom visual referrer limitation?&lt;/P&gt;
&lt;P data-start="211" data-end="326"&gt;Please let us know how it went or if you’re still facing any challenges. We’re happy to assist further if needed.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 10:34:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5139977#M64783</guid>
      <dc:creator>v-aatheeque</dc:creator>
      <dc:date>2026-03-27T10:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5140961#M64794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1440382"&gt;@Eduardo41523&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;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.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 09:13:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5140961#M64794</guid>
      <dc:creator>v-aatheeque</dc:creator>
      <dc:date>2026-03-30T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5144799#M64842</link>
      <description>&lt;P&gt;For other users coming here. Specifically for Custom Power BI Visuals, Referrer Headers, and possibly getting blocked by OpenStreetMap with the 403r referrer is required:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, even if you set the reffer-policy for your tile HTTP or HTTPS requests, or if Leaflet.js sets this, the specific Referrer HTTP header never gets sent for Custom Power BI Visuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is shown here&amp;nbsp;&lt;A href="https://community.openstreetmap.org/t/access-blocked-on-osm-org/141419/43" target="_blank"&gt;https://community.openstreetmap.org/t/access-blocked-on-osm-org/141419/43&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked through the Sandbox code for Custom Visuals in Power BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/13.0.28090.50/cvSandboxPack.cshtml?locale=en-US&amp;amp;pbiglobals=1#e9ae9064-dc5c-44b3-910b-fa0df87535d8" target="_blank"&gt;https://app.powerbi.com/13.0.28090.50/cvSandboxPack.cshtml?locale=en-US&amp;amp;pbiglobals=1#e9ae9064-dc5c-44b3-910b-fa0df87535d8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has this&amp;nbsp;&lt;SPAN&gt;injectJsCode function that creates an isolated clone of the window object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// ...&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.call(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //generate isolated clone of window object&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (function(w) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var wKeys = Object.getOwnPropertyNames(w);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var nextW = w;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ((nextW = Object.getPrototypeOf(nextW))) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wKeys = wKeys.concat(Object.getOwnPropertyNames(nextW));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var newWindow = Object.create(w);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //rebuild some of the window properties so they work correctly&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; wKeys.length; i++) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know exactly how, but this seems to make the Referrer header not send, even if you set the Referrer Policy to a value that would send a Referrer header. I feel like the JavaScript loses what host/domain/origin it's running when the Window object is cloned (created) like this.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 19:08:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5144799#M64842</guid>
      <dc:creator>SpaceBAWS</dc:creator>
      <dc:date>2026-04-07T19:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI custom visual not sending Referer</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5144800#M64843</link>
      <description>&lt;P&gt;For other users coming here. Specifically for Custom Power BI Visuals, Referrer Headers, and possibly getting blocked by OpenStreetMap with the 403r referrer is required:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, even if you set the reffer-policy for your tile HTTP or HTTPS requests, or if Leaflet.js sets this, the specific Referrer HTTP header never gets sent for Custom Power BI Visuals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is shown here&amp;nbsp;&lt;A href="https://community.openstreetmap.org/t/access-blocked-on-osm-org/141419/43" target="_blank"&gt;https://community.openstreetmap.org/t/access-blocked-on-osm-org/141419/43&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked through the Sandbox code for Custom Visuals in Power BI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://app.powerbi.com/13.0.28090.50/cvSandboxPack.cshtml?locale=en-US&amp;amp;pbiglobals=1#e9ae9064-dc5c-44b3-910b-fa0df87535d8" target="_blank"&gt;https://app.powerbi.com/13.0.28090.50/cvSandboxPack.cshtml?locale=en-US&amp;amp;pbiglobals=1#e9ae9064-dc5c-44b3-910b-fa0df87535d8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has this&amp;nbsp;&lt;SPAN&gt;injectJsCode function that creates an isolated clone of the window object.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// ...&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.call(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //generate isolated clone of window object&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (function(w) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var wKeys = Object.getOwnPropertyNames(w);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var nextW = w;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while ((nextW = Object.getPrototypeOf(nextW))) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wKeys = wKeys.concat(Object.getOwnPropertyNames(nextW));&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var newWindow = Object.create(w);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //rebuild some of the window properties so they work correctly&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; wKeys.length; i++) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know exactly how, but this seems to make the Referrer header not send, even if you set the Referrer Policy to a value that would send a Referrer header. I feel like the JavaScript loses what host/domain/origin it's running when the Window object is cloned (created) like this.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 19:09:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-custom-visual-not-sending-Referer/m-p/5144800#M64843</guid>
      <dc:creator>SpaceBAWS</dc:creator>
      <dc:date>2026-04-07T19:09:18Z</dc:date>
    </item>
  </channel>
</rss>

