# Website live chat widget integration not working

**URL:** <https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908>\
**Category:** Community Support\
**Created:** [April 20, 2022, 10:47am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908 "2022-04-20T10:47:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixluk](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@felixluk](https://forums.rocket.chat/u/felixluk)\
**Post date:** [April 20, 2022, 10:47am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/1 "2022-04-20T10:47:50Z")

</div>

### Description

### Server Setup Information

- Version of Rocket.Chat Server:
- Operating System: Ubuntu 20
- Deployment Method: Snap
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
- Proxy: none
- Firewalls involved: UFW

### Any additional Information

Not sure how to get the version of nodejs and mongodb since i installed the rocket chat server by snap.

Anyway I was successful with the installation, and I was able to point my browser (Firefox) at http://ip\_addr:3000 to configure rocket chat. After that, I copied the embed widget code and pasted it into my test website.

The widget didn’t appear. Checking with the built-in debugging tool shows the following error message: “Error: Promised response from onMessage listener went out of scope background.js:835:170”

I double checked with Chrome and the widget didn’t appear, either.

Any ideas? Thank you very much.

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [April 20, 2022, 11:33am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/2 "2022-04-20T11:33:22Z")

</div>

Hi!

Can you check if http://ip\_addr:3000/livechat is working?

I assume **ip\_addr** is a publicly available ip, right?

Also, make sure to have this website also configured in Admin \> Omnichannel \> Livechat \> Livechat Allowed Domains

---

<div class="post-metadata">

**Author:** ![felixluk](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@felixluk](https://forums.rocket.chat/u/felixluk)\
**Post date:** [April 24, 2022, 10:05am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/3 "2022-04-24T10:05:19Z")

</div>

Hi!

Thanks for your reply.

I am testing rocket.chat now. It’s sitting in a VM box on my computer, and their IP are in 192.168.1.x. I can see the “home” page and “Omnichannel” page fine. The “livechat” page is currently blank, but when it’s loading I could see some words at the top left hand corner of the page for a fraction of a second.

As for the “Livechat Allowed Domains,” the box is currently empty, which apparently allows all domains.

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [April 25, 2022, 10:49am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/4 "2022-04-25T10:49:15Z")

</div>

If you open your developer tools at the browser you are using to visit [http://192.168.1.x:3000](http://192.168.1.x:3000) your should see some errors that may help on this issue.

Also, make sure to have [http://192.168.1.x:3000](http://192.168.1.x:3000) as your siteurl (Admin \> General) considering that this is the ip of the vm you want to access it “externally” from within your own network.

---

<div class="post-metadata">

**Author:** ![felixluk](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@felixluk](https://forums.rocket.chat/u/felixluk)\
**Post date:** [April 26, 2022, 8:59am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/5 "2022-04-26T08:59:56Z")

</div>

Hi,

Thanks for your reply. After setting the siteurl in Admin\>General, the “livechat” page now works fine. 😀

Pointing my browser at [http://192.168.1.x:3000](http://192.168.1.x:3000) works as well. It redirects me to rocket.chat’s home page.

It’s the embedded embedded widget on the test website - which is just a page with some pseudo latin in /var/www/html of my computer - still doesn’t work.

For chrome, the error is “Refused to display ‘[http://192.168.1.103:3000/](http://192.168.1.103:3000/)’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.”

For Firefox, the error is “Error: Promised response from onMessage listener went out of scope ‘background.js:842:170’”

I hope that’s helpful.

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [April 26, 2022, 11:39am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/6 "2022-04-26T11:39:59Z")

</div>

Have you tried explicitly filling the field “Livechat Allowed Domains” with the domain or ip you are trying to use?

looks like the server is not allowing it.

---

<div class="post-metadata">

**Author:** ![felixluk](https://avatars.discourse-cdn.com/v4/letter/f/77aa72/32.png) [@felixluk](https://forums.rocket.chat/u/felixluk)\
**Post date:** [April 28, 2022, 6:01am UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/7 "2022-04-28T06:01:21Z")

</div>

Awesome! That did the trick. I wonder why?

Thank you very much indeed! 👍

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [April 28, 2022, 1:45pm UTC](https://forums.rocket.chat/t/website-live-chat-widget-integration-not-working/13908/8 "2022-04-28T13:45:45Z")

</div>

I believe that help text is wrong. 🙈

I have already raised this internally and we’ll work on it.

**Thanks for pointing out!** 🙂

Please, consider also joining our [Community Support Channel](https://open.rocket.chat/channel/support) to help other and get help too.

And also check out our upcoming monthly [Community Open Call](https://app.livestorm.co/rocket-chat/community-open-call?type=detailed&utm_source=COMMUNITY) or [past sessions](https://www.youtube.com/watch?v=TcWnNtw2cYU&list=PLee3gqXJQrFVaxryc0OKTKc92yqQX9U-5)
