<?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 Blocked a frame with origin &amp;quot;null&amp;quot; from accessing a cross-origin frame. in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Blocked-a-frame-with-origin-quot-null-quot-from-accessing-a/m-p/751936#M20148</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the exact code from &lt;A href="https://community.powerbi.com/t5/Developer/Use-Google-Map-API-in-custom-visual/td-p/190346" target="_blank" rel="noopener"&gt;this&lt;/A&gt; topic:&lt;/P&gt;&lt;PRE&gt;        d3.select(options.element).append('script')
        .attr({
            type: 'text/javascript',
            src: 'https://maps.googleapis.com/maps/api/js?key=API-KEY&amp;amp;libraries=visualization,drawing&amp;amp;callback=initMap',
            async: true
        })
        .on('load', () =&amp;gt; {
            thisRef.initMap();
        });&lt;/PRE&gt;&lt;P&gt;While everything is working fine, I see the following two errors popping up on each initial page load:&lt;/P&gt;&lt;PRE&gt;Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame.
    at Object._.S.addDomListener (https://maps.googleapis.com/maps/api/js?key=API-KEY&amp;amp;libraries=visualization,drawing&amp;amp;callback=initMap:168:56)
    at HTMLIFrameElement.&amp;lt;anonymous&amp;gt; (https://maps.googleapis.com/maps-api-v3/api/js/37/8a/map.js:95:28)&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;Uncaught (in promise) Vc&amp;nbsp;{message: "initMap is not a function", name: "InvalidValueError", stack: "Error↵    at new Vc (https://maps.googleapis.com/m…ies=visualization,drawing&amp;amp;callback=initMap:129:96"}&lt;/PRE&gt;&lt;P&gt;Should I use a different way to reference the script?&lt;/P&gt;&lt;P&gt;Why is the origin 'null'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2019 20:57:25 GMT</pubDate>
    <dc:creator>Blaenzo</dc:creator>
    <dc:date>2019-07-29T20:57:25Z</dc:date>
    <item>
      <title>Blocked a frame with origin "null" from accessing a cross-origin frame.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Blocked-a-frame-with-origin-quot-null-quot-from-accessing-a/m-p/751936#M20148</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the exact code from &lt;A href="https://community.powerbi.com/t5/Developer/Use-Google-Map-API-in-custom-visual/td-p/190346" target="_blank" rel="noopener"&gt;this&lt;/A&gt; topic:&lt;/P&gt;&lt;PRE&gt;        d3.select(options.element).append('script')
        .attr({
            type: 'text/javascript',
            src: 'https://maps.googleapis.com/maps/api/js?key=API-KEY&amp;amp;libraries=visualization,drawing&amp;amp;callback=initMap',
            async: true
        })
        .on('load', () =&amp;gt; {
            thisRef.initMap();
        });&lt;/PRE&gt;&lt;P&gt;While everything is working fine, I see the following two errors popping up on each initial page load:&lt;/P&gt;&lt;PRE&gt;Uncaught DOMException: Blocked a frame with origin "null" from accessing a cross-origin frame.
    at Object._.S.addDomListener (https://maps.googleapis.com/maps/api/js?key=API-KEY&amp;amp;libraries=visualization,drawing&amp;amp;callback=initMap:168:56)
    at HTMLIFrameElement.&amp;lt;anonymous&amp;gt; (https://maps.googleapis.com/maps-api-v3/api/js/37/8a/map.js:95:28)&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;Uncaught (in promise) Vc&amp;nbsp;{message: "initMap is not a function", name: "InvalidValueError", stack: "Error↵    at new Vc (https://maps.googleapis.com/m…ies=visualization,drawing&amp;amp;callback=initMap:129:96"}&lt;/PRE&gt;&lt;P&gt;Should I use a different way to reference the script?&lt;/P&gt;&lt;P&gt;Why is the origin 'null'?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Martijn&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2019 20:57:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Blocked-a-frame-with-origin-quot-null-quot-from-accessing-a/m-p/751936#M20148</guid>
      <dc:creator>Blaenzo</dc:creator>
      <dc:date>2019-07-29T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Blocked a frame with origin "null" from accessing a cross-origin frame.</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Blocked-a-frame-with-origin-quot-null-quot-from-accessing-a/m-p/2437121#M35340</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/97423"&gt;@Blaenzo&lt;/a&gt;&amp;nbsp;Did you get the answer?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 04:15:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Blocked-a-frame-with-origin-quot-null-quot-from-accessing-a/m-p/2437121#M35340</guid>
      <dc:creator>Pujan789556</dc:creator>
      <dc:date>2022-04-05T04:15:49Z</dc:date>
    </item>
  </channel>
</rss>

