Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect MIME types - Part A #47

Open
gitLRD opened this issue Jun 18, 2021 · 1 comment
Open

Incorrect MIME types - Part A #47

gitLRD opened this issue Jun 18, 2021 · 1 comment

Comments

@gitLRD
Copy link

gitLRD commented Jun 18, 2021

Hi guys,

I'm new to Node and web dev in general, so apologies if this is really basic.

I've implemented tutorial part A but all I get when I go to localhost:8080 is a blank page. Looking at the developer tools I see the following:

Content Security Policy: The page's settings blocked the loading of a resource at http://localhost:8080/favicon.ico ("default-src"). FaviconLoader.jsm:191:19
The resource from “http://localhost:8080/node_modules/openmct/dist/openmct.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Loading failed for the <script> with source “http://localhost:8080/node_modules/openmct/dist/openmct.js”. localhost:8080:5:1
Uncaught ReferenceError: openmct is not defined
    <anonymous> http://localhost:8080/:10

My index.html is in the root of my openmct-tutorial directory, although I've also tried it in the example-server directory (just in case).

What am I missing here please? (I assume the problem is with me because I don't see anyone else complaining about this)

@evanfitzgerald
Copy link

evanfitzgerald commented Jul 26, 2021

@gitLRD Do you have the directory 'openmct' inside the 'node_modules' directory? This is likely the issue, if it is, then just add it and the error should be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants