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?