Skip to content

.mjs mimetype support #484

@bjesuiter

Description

@bjesuiter

.mjs ECMA Script Module files are served with application/octet-stream MIME Type
instead of text/javascript, so the modules do not get imported in Chrome because of this error:

:8080/counter.mjs:1 Failed to load module script: The server responded with a non-JavaScript MIME > type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.

Can you serve these files with the correct mime type please? Sounds like a pretty minor change :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions