CORS issue with chat bot in Firefox

Good day

I added the chatbot js code to our site and it loaded no issue in Chrome.

In Firefox (same code, no special browser management) it won’t load and show’s this message in the developer console

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.hubspot.com/livechat-public/v1/message/public?portalId=39587176&conversations-embed=static-1.13079&mobile=false&messagesUtk=db2e4b666954432bb9f5167a963563ff&traceId=db2e4b666954432bb9f5167a963563ff. (Reason: CORS request did not succeed). Status code: (null).

I understand the issue but don’t see how we can fix it. Any ideas? thanks

Hey, @Barkley44 :waving_hand: Thanks for reaching out. This one will be challenging without being able to see it in action. Do you have a link that the community can view? Where this issue is occurring. Additionally, are you saying that “Strict” mode isn’t enabled? Is that correct?

If not, if you have a Starter subscription, I’d suggest filing an email support ticket.
I’d include:

  • a link to the page where they can reproduce it
  • collect a HAR file of the issue and error happening. Instructions here — How to collect a HAR file
  • emphasize in the support ticket you are not asking for custom coding assistance. That the issue is related to the default HubSpot provided script isn’t loading per the instructions found here
  • let them know you have worked through possible reasons here — Chat widget not appearing on website pages

My instinct is this will be browser-specific and not something we can directly address. And filing a support ticket may uncover additional factors and helps to create documentation around a pain point.

Best,

Jaycee

Thanks for the help, appreciate it - will do so now

We have the same issue on our site https://www.fusionconnect.com

Chat loads for Chrome, Edge, Safari, IE, and on Android mobile devices, but not in Firefox. Or at least, not in Firefox with the security settings set to “Strict”.

We have this same issue on our side: https://vistity.com/. When viewed with the Chrome browser, there are no issue. When viewed with the Firefox browser, the same errors mentioned above appear in the console. My “guess” is that the javascript file is being loaded from “js.hubspot.com”, and that file is trying to load resources from “forum.hubspot.com”, based on the error messages. Please advise us of a fix as soon as possible.

Update: this only happens when Firefox is in “strict” mode.