Livechat Script on remote domain

I solved it through this post: https://github.com/RocketChat/Rocket.Chat/issues/17786

In administration - general I disabled the option: Restrict access inside any Iframe