# Chat doesn't work - JS error

**URL:** <https://community.hubspot.com/t/chat-doesnt-work-js-error/20100>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [April 16, 2020, 11:06am UTC](https://community.hubspot.com/t/chat-doesnt-work-js-error/20100 "2020-04-16T11:06:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinbrosseau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevinbrosseau/32/87988_2.png) [@kevinbrosseau](https://community.hubspot.com/u/kevinbrosseau)\
**Post date:** [April 16, 2020, 11:06am UTC](https://community.hubspot.com/t/chat-doesnt-work-js-error/20100/1 "2020-04-16T11:06:14Z")

</div>

Hello,

I’m a new user of Hubspot CRM and I tried to install a chat in my website [https://www.warenghem.com](https://www.warenghem.com) (powered by Wordpress).

But I have an error in my console:

Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘[https://app.hubspot.com](https://app.hubspot.com)’) does not match the recipient window’s origin (‘[https://www.warenghem.com](https://www.warenghem.com)’).

It seems that there are no similar issues on the web, could you help me, please?

Thank you a lot and have a great day !

Kevin

---

<div class="post-metadata">

**Author:** ![MatthewShepherd](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/matthewshepherd/32/31314_2.png) [@MatthewShepherd](https://community.hubspot.com/u/MatthewShepherd)\
**Post date:** [April 16, 2020, 12:54pm UTC](https://community.hubspot.com/t/chat-doesnt-work-js-error/20100/2 "2020-04-16T12:54:51Z")

</div>

Hi @kevinbrosseau

The chat window is loading for me when I visit your site in Chrome, Firefox and Edge browsers and I don’t see that error message in the console (though I see a few Wordpress script errors in there). Is this still happening for you? If so which browser are you using?  
These kinds of errors can sometimes occur if a page is slow to load or can be temporary.

---

<div class="post-metadata">

**Author:** ![kevinbrosseau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevinbrosseau/32/87988_2.png) [@kevinbrosseau](https://community.hubspot.com/u/kevinbrosseau)\
**Post date:** [April 16, 2020, 1:11pm UTC](https://community.hubspot.com/t/chat-doesnt-work-js-error/20100/3 "2020-04-16T13:11:58Z")

</div>

Thank you for your answer,

Is was Aguard and Privacy badger extension. It’s working know as they are disabled.

But it is not a good thing because Intercom chat (for example, I saw it) is showing well with these extensions enabled.

Thank you !

Kevin

---

<div class="post-metadata">

**Author:** ![kevinbrosseau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kevinbrosseau/32/87988_2.png) [@kevinbrosseau](https://community.hubspot.com/u/kevinbrosseau)\
**Post date:** [April 16, 2020, 1:16pm UTC](https://community.hubspot.com/t/chat-doesnt-work-js-error/20100/4 "2020-04-16T13:16:02Z")

</div>

Just one more question, it is not possible to insert custom CSS ?

---

<div class="post-metadata">

**Author:** ![wicara](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wicara/32/101660_2.png) [@wicara](https://community.hubspot.com/u/wicara)\
**Post date:** [April 8, 2021, 6:28am UTC](https://community.hubspot.com/t/chat-doesnt-work-js-error/20100/5 "2021-04-08T06:28:08Z")

</div>

I am getting a similar issue with the postMessageToIframe.js:14 Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided I dont see an issue with this one did it get resolved?
