capnmidnight / Calla

Virtual Meetups through Jitsi
https://www.calla.chat
MIT License
1.08k stars 77 forks source link

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

Closed jvns closed 4 years ago

jvns commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

jvns commented 4 years ago

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

capnmidnight commented 4 years ago

Awesome! Though honestly, most of the installation ease comes from the hard work the folks at 8x8 did on Jitsi. My overlay is so small it would be hard to obfuscate its installation without actively trying to.

If you don't mind, could you report back in a little while on how it's working out for you?

capnmidnight commented 4 years ago

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.