mime type not executable

I have a problem with joining the file rocketchat-livechat.min.js.

Error is:

Refused to execute script from ‘…’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

Here is my HTML:

<body>
    <script language="javascript" 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 = 'rocketchat-livechatmin.js';
            h.parentNode.insertBefore(j, h);
        })(window, document, 'script', 'xxx');
    </script>       
</body>

The file is in the same directory as the html document. Has anyone had a similar problem? What can be done to solve it? Thank you in advance for your help!

29 thoughts on “mime type not executable”