Skip to content

Incorrect MIME types - Part A #47

@gitLRD

Description

@gitLRD

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions