I have an HTML document that is working except the js external file is not loading. Here is the HTML
<!DOCTYPE html>
<html>
<head>
<title>...</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#1f1f1f">
<meta charset="UTF-8" />
<link type="text/css" href="styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<h1>some text</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.js"></script>
<script src="js/app.js"></script>
</body>
</html>
I get the following error in the console
The resource from “http://localhost:8000/js/app.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
My app.js is located in the js directory, so the problem is that the file doesn't exist. But I don't know what it means by MIME type and nosniff.