I host my react app on uberspace. They use apache and have X-Content-Type-Options: nosniff
enabled. Which I like.
However when I host my react app I get the following error in firefox console:
The resource from “url...” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
I figured out that the mimetype of the js is for some reason text/html. Saw that in network tab in the firefox developer tools.
I added AddType text/javascript js
to my .htaccess, but it doesn't help.
I think the problem is, that the js is served as html mimetype and I don't know how to force it to be mimetype js.
Any ideas? Thank you