Skip to content

Basic example - disallowed MIME type #32

@byezy

Description

@byezy

Hi, great work.

I tried running the basic example and the browser console (firefox) shows this issue:

Loading failed for the module with source “http://127.0.0.1:8080/pkg/leaflet_rs_example.js”. 127.0.0.1:8080:23:27
Loading module from “http://127.0.0.1:8080/pkg/leaflet_rs_example.js” was blocked because of a disallowed MIME type (“text/html”).

Google chrome also shows the issue as:

The integrity attribute is currently ignored for preload destinations that do not support subresource integrity. See https://crbug.com/981419 for more information
leaflet_rs_example.js:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

How can I overcome this within the context of your example app?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions