What needs to be done to allow a JS file stored in the DAM to be referenced in a script call in an HTML page?
We have a JS file that is stored in the dam. We have an page template that calls that file like this <script type="text/javascript" src="/content/dam/path/to/script/file.js"></script>.
When I run the app locally I get this error "The resource from “http://localhost:4502/content/dam/path/to/script/file.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
This works in production but I've got no idea how this was achieved.
This is on AEM 6.1.
