Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

wrong MIME type for js scripts on meet.primrosevr.com #19

Closed
jvns opened this issue Apr 7, 2020 · 6 comments
Closed

wrong MIME type for js scripts on meet.primrosevr.com #19

jvns opened this issue Apr 7, 2020 · 6 comments

Comments

@jvns
Copy link

jvns commented Apr 7, 2020

When I visit the example installation, I get a couple of errors in the JS console and it won't load the game.

Loading module from “https://meet.primrosevr.com/scripts/game.js” was blocked because of a disallowed MIME type (“text/plain”).

$ curl -I https://meet.primrosevr.com/scripts/game.js  | grep content-type
content-type: text/plain; charset=utf-8
@capnmidnight
Copy link
Owner

Hrm, that's really weird. I didn't get this error as of yesterday, but I'm getting it now.

I'm using Azure CDN to host the front-end files. I had to look up how to change the MIME type of a file in Azure Blob Storage. All of the JS files were definitely set to "text/plain". I changed them to "text/javascript" just now. Still waiting to see the CDN update.

@capnmidnight
Copy link
Owner

It works right if I access the endpoint directly... ah, look at that, there's a Purge button. Let's see what that does.

@capnmidnight
Copy link
Owner

OK! Looks like it's good now. Thanks for the head's up.

@jvns
Copy link
Author

jvns commented Apr 7, 2020

thanks! Also thanks for writing such clear installation instructions -- they worked perfectly and I got my own instance set up super quickly.

@capnmidnight
Copy link
Owner

capnmidnight commented Apr 7, 2020 via email

@capnmidnight
Copy link
Owner

BTW, I don't know if you noticed, and I forgot to mention it in the README before today, but index.html includes links to the Lozya repo and my Twitter profile. So you might want to change/remove that.

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

No branches or pull requests

2 participants