When trying to utilize livechat (new) , neither Chrome, nor Firefox show the page. They simply show an error …
New Code (does not work):
<script type="text/javascript">
(function(w, d, s, u) {
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true; j.src = 'chatlink';
h.parentNode.insertBefore(j, h);
})(window, document, 'script', 'chatlink');
</script>
<!-- End of Rocket.Chat Livechat Script -->
Server Setup Information
- Version of Rocket.Chat Server:
- Operating System: Ubuntu
- Deployment Method: Snap
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
- Proxy: caddy
- Firewalls involved:
Any additional Information
From Chrome console:
Cross-Origin Read Blocking (CORB) blocked cross-origin response link with MIME type text/html. See Chrome Platform Status for more details.
From Firefox console:
Chrome seems to think there’s some sort of XSS involved, but this is a pretty standard setup, having chat go to chat.domain.com and serving it from the site itself.