<?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: Meetings embed widget script causing an error by accessing iframe's document in Marketing Integrations</title>
    <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961656#M6162</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DKowalczyk_0-1713337788324.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/115417i0769C1D508D5047E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DKowalczyk_0-1713337788324.png" alt="DKowalczyk_0-1713337788324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seems to be in the attempt to add a meta HTML tag to the iframe's document with robots, noindex&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 07:09:57 GMT</pubDate>
    <dc:creator>DKowalczyk</dc:creator>
    <dc:date>2024-04-17T07:09:57Z</dc:date>
    <item>
      <title>Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961024#M6153</link>
      <description>&lt;P&gt;The script `&lt;A href="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js`" target="_blank"&gt;https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js`&lt;/A&gt;&amp;nbsp;responsible for embedding the Meetings widget iframe is causing the following error:&lt;BR /&gt;&lt;BR /&gt;`Uncaught DOMException: Failed to read a named property 'document' from 'Window': Blocked a frame with origin "xxx" from accessing a cross-origin frame.&lt;BR /&gt;&lt;A href="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js:1:3022" target="_blank"&gt;https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js:1:3022&lt;/A&gt;`&lt;BR /&gt;&lt;BR /&gt;Were there any recent changes done to this script? Can I expect it to be fixed?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 09:48:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961024#M6153</guid>
      <dc:creator>DKowalczyk</dc:creator>
      <dc:date>2024-04-16T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961512#M6161</link>
      <description>&lt;P&gt;Hey &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/746135"&gt;@DKowalczyk&lt;/a&gt;&lt;/SPAN&gt;, thank you for posting in our Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any additional information or specific details about when this issue started occurring, it would be helpful for our investigation. Also, if you have any urgent meetings or tasks affected by this, please let us know so that we can explore alternative solutions or workarounds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more information, screenshots, and details you can provide, the better I can advise on the next steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Pam&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2024 21:33:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961512#M6161</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2024-04-16T21:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961656#M6162</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DKowalczyk_0-1713337788324.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/115417i0769C1D508D5047E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DKowalczyk_0-1713337788324.png" alt="DKowalczyk_0-1713337788324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue seems to be in the attempt to add a meta HTML tag to the iframe's document with robots, noindex&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 07:09:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/961656#M6162</guid>
      <dc:creator>DKowalczyk</dc:creator>
      <dc:date>2024-04-17T07:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/962394#M6168</link>
      <description>&lt;P&gt;I'm having the same issue. One detail, it started to fail because my CSP was blocking a reference to&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;&lt;A href="https://js-agent.newrelic.com/" target="_blank"&gt;https://js-agent.newrelic.com/&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;After adding that domain to my script-src CSP, then I have the 'Uncaught DOMException: Failed to read a named property 'document' from 'Window'...' error, so it may be related.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how I inject the embedded widget in Angular:&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;ngOnInit&lt;/SPAN&gt;(): &lt;SPAN&gt;void &lt;/SPAN&gt;{&lt;BR /&gt;  &lt;SPAN&gt;const &lt;/SPAN&gt;&lt;SPAN&gt;myScriptElement &lt;/SPAN&gt;= &lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN&gt;createElement&lt;/SPAN&gt;(&lt;SPAN&gt;'script'&lt;/SPAN&gt;);&lt;BR /&gt;  &lt;SPAN&gt;myScriptElement&lt;/SPAN&gt;.&lt;SPAN&gt;src &lt;/SPAN&gt;=&lt;BR /&gt;    &lt;SPAN&gt;'https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js'&lt;/SPAN&gt;;&lt;BR /&gt;  &lt;SPAN&gt;document&lt;/SPAN&gt;.&lt;SPAN&gt;body&lt;/SPAN&gt;.&lt;SPAN&gt;appendChild&lt;/SPAN&gt;(&lt;SPAN&gt;myScriptElement&lt;/SPAN&gt;);&lt;BR /&gt;}&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 18 Apr 2024 06:56:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/962394#M6168</guid>
      <dc:creator>vargasp</dc:creator>
      <dc:date>2024-04-18T06:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/962427#M6169</link>
      <description>&lt;P&gt;My guess is that your MeetingsEmbedCode.js started using the New Relic agent at some point, which is introducing the referer domain (my web site) into a vulnerable context.&lt;/P&gt;&lt;P&gt;Fortunatelly, modern browsers are able to deal with this situation...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 08:21:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/962427#M6169</guid>
      <dc:creator>vargasp</dc:creator>
      <dc:date>2024-04-18T08:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/963249#M6171</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following up on this. It seems to be a bug introduced in the newest version of&amp;nbsp;MeetingsEmbedCode.js - can you please advise?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 07:37:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/963249#M6171</guid>
      <dc:creator>DKowalczyk</dc:creator>
      <dc:date>2024-04-19T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/963719#M6173</link>
      <description>&lt;P&gt;We're also experiencing this issue. According to our sentry logs, April 16th, 2024 was the first time we encountered this error.&lt;BR /&gt;&lt;BR /&gt;It's looking like the embed code is accessing the `contentWindow`, document object. This is something that's generally only allowed if the contentWindow or iFrame is on the same origin.&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow" target="_blank" rel="noopener"&gt;https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;    c.addEventListener("load", function () {
          const t = document.createElement("meta");
          t.name = "robots";
          t.content = "noindex";
          c.contentWindow.document.head.appendChild(t);
    });&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 19:27:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/963719#M6173</guid>
      <dc:creator>alettieri</dc:creator>
      <dc:date>2024-04-19T19:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/964912#M6177</link>
      <description>&lt;P&gt;Is there any development on this?&lt;BR /&gt;&lt;BR /&gt;Facing same issue. This is how the code is embed in React.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;&amp;gt;
            &amp;lt;Helmet&amp;gt;
                &amp;lt;script type="text/javascript" src={HUBSPOT_MEETING_SCRIPT_URL}&amp;gt;&amp;lt;/script&amp;gt;
            &amp;lt;/Helmet&amp;gt;
            &amp;lt;div className="meetings-iframe-container" data-src={__HUBSPOT_MEETING_CALENDAR_URL__}&amp;gt;&amp;lt;/div&amp;gt;
            
        &amp;lt;/&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We also encountered this error for the first time on Sentry on April 16th, 2024&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 00:33:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/964912#M6177</guid>
      <dc:creator>KKulkarni3</dc:creator>
      <dc:date>2024-04-23T00:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/965754#M6181</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60427"&gt;@PamCotton&lt;/a&gt;&amp;nbsp;- just letting you know the community discovered an issue in your production script that haven't been addressed anyhow.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 07:51:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/965754#M6181</guid>
      <dc:creator>DKowalczyk</dc:creator>
      <dc:date>2024-04-24T07:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Meetings embed widget script causing an error by accessing iframe's document</title>
      <link>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/988861#M6280</link>
      <description>&lt;P&gt;Having a similar issue, the iFrame does not load until there is mouse movement on the page.&amp;nbsp; The script is&amp;nbsp;&lt;BR /&gt;&amp;lt;!-- Start of Meetings Embed Script --&amp;gt;&lt;BR /&gt;&amp;lt;div class="meetings-iframe-container" data-src="&lt;A href="https://meetings.hubspot.com/user-profile/schedule-a-call?embed=true" target="_blank"&gt;https://meetings.hubspot.com/user-profile/schedule-a-call?embed=true&lt;/A&gt;"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;script type="text/javascript" src="&lt;A href="https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js" target="_blank"&gt;https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js&lt;/A&gt;"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;!-- End of Meetings Embed Script --&amp;gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 15:25:08 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Marketing-Integrations/Meetings-embed-widget-script-causing-an-error-by-accessing/m-p/988861#M6280</guid>
      <dc:creator>DecisioHealth</dc:creator>
      <dc:date>2024-06-07T15:25:08Z</dc:date>
    </item>
  </channel>
</rss>

