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”

  1. 399548 387236Good post. I be taught one thing much more challenging on completely different blogs everyday. It will all the time be stimulating to learn content from other writers and apply slightly one thing from their store. Id desire to use some with the content on my weblog whether you dont mind. Natually Ill give you a hyperlink on your net weblog. Thanks for sharing. 175134

    Reply

Leave a Comment