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

Basic example - disallowed MIME type #32

Open
byezy opened this issue Feb 9, 2024 · 1 comment
Open

Basic example - disallowed MIME type #32

byezy opened this issue Feb 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@byezy
Copy link

byezy commented Feb 9, 2024

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!

@flosse
Copy link
Member

flosse commented Feb 9, 2024

I couldn't even compile the example 🙈
So I think that your server was not able to find the files.
Could you please try the latest commit on master again?

@flosse flosse added the question Further information is requested label Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants