Welcome! Log In Create A New Profile

Advanced

Loading module from “http://URL/main.js” was blocked because of a disallowed MIME type (“text/html”)

Posted by Epic555 
I configured redirect on nginx in location block in server block. When i open URL page (javascript) i receive error:

Loading module from “http://URL/main.js” was blocked because of a disallowed MIME type (“text/html”).

In my server block and nginx.conf I have lines:

include /etc/nginx/mime.types;

In mime.types file I have line:

application/javascript js;

How to solve this issue?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready