my website works fine on local host but when i upload it to heroku i get The resource from “https://websitename.herokuapp.com/Static/js/main.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
on all static files both css and javascript
index.html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!-- Google Font -->
<link
href="https://fonts.googleapis.com/css?family=Muli:300,400,500,600,700,800,900&display=swap"
/>
<link
rel="stylesheet"
href="./Static/css/slicknav.min.css"
type="text/css"
/>
<link rel="stylesheet" href="./Static/css/style.css" type="text/css" />
<title>React App</title>
</head>
<body>
<div id="root"></div>
<script
src="./Static/js/jquery.slicknav.js"
type="text/javascript"
></script>
<script src="./Static/js/main.js" type="text/javascript"></script>
</body>
</html>
i had to remove some of them from my post so they could fit.