<?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: Vue.JS Load Chat Widget CORS error in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/584896#M51248</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60427"&gt;@PamCotton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're just using standard Vue 3. However, I seem to have fixed the issue, we're using Azure App Insights in our application and we have a setting enabled that allows us to trace every HTTP request in the app for debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This adds a "traceparent" header to each request and hubspot doesn't seem to allow that so we've allowlisted the hubspot domain in the App Insights config and everything is working perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to help!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 15:06:37 GMT</pubDate>
    <dc:creator>JLowe3</dc:creator>
    <dc:date>2022-02-28T15:06:37Z</dc:date>
    <item>
      <title>Vue.JS Load Chat Widget CORS error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/582523#M51222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to load the Hubspot Chat widget into my VueJS app.&lt;/P&gt;&lt;P&gt;I have the tracking script installed within index.html and then I want to be able to call the load function from within Vue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JLowe3_0-1645707047392.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/60317i87AE0AD72B33485C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JLowe3_0-1645707047392.png" alt="JLowe3_0-1645707047392.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, whenever I call the load function (even in the console), I seem to get a CORS error and I can't load the chat widget.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JLowe3_1-1645707087458.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/60318i97F73B26966EB055/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JLowe3_1-1645707087458.png" alt="JLowe3_1-1645707087458.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 12:51:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/582523#M51222</guid>
      <dc:creator>JLowe3</dc:creator>
      <dc:date>2022-02-24T12:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Vue.JS Load Chat Widget CORS error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/583930#M51223</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/337775"&gt;@JLowe3&lt;/a&gt;, happy Friday!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I would like to invite some top experts&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/166093"&gt;@miljkovicmisa&lt;/a&gt;,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/158"&gt;@jpsanchez&lt;/a&gt;&amp;nbsp;any recommendations to&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/337775"&gt;@JLowe3&lt;/a&gt;?&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>Fri, 25 Feb 2022 21:54:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/583930#M51223</guid>
      <dc:creator>PamCotton</dc:creator>
      <dc:date>2022-02-25T21:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Vue.JS Load Chat Widget CORS error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/584370#M51232</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/337775"&gt;@JLowe3&lt;/a&gt;&amp;nbsp;are you using nuxt.js by chance? If so, it might be trying to run the script server side instead of client side. Try putting it inside a client only component as described here:&amp;nbsp;&lt;A href="https://nuxtjs.ir/api/components-client-only" target="_blank" rel="noopener"&gt;https://nuxtjs.ir/api/components-client-only&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 16:15:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/584370#M51232</guid>
      <dc:creator>stefen</dc:creator>
      <dc:date>2022-02-27T16:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Vue.JS Load Chat Widget CORS error</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/584896#M51248</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/60427"&gt;@PamCotton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're just using standard Vue 3. However, I seem to have fixed the issue, we're using Azure App Insights in our application and we have a setting enabled that allows us to trace every HTTP request in the app for debugging.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This adds a "traceparent" header to each request and hubspot doesn't seem to allow that so we've allowlisted the hubspot domain in the App Insights config and everything is working perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reaching out to help!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 15:06:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Vue-JS-Load-Chat-Widget-CORS-error/m-p/584896#M51248</guid>
      <dc:creator>JLowe3</dc:creator>
      <dc:date>2022-02-28T15:06:37Z</dc:date>
    </item>
  </channel>
</rss>

