neoascetic / rawgithack

Serves files from github, bitbucket and gitlab, but with the correct content types
https://raw.githack.com
MIT License
576 stars 86 forks source link

Javascript file not loading on non-dev Chrome but loads fine on dev Chrome #73

Closed kennethjmyers closed 1 year ago

kennethjmyers commented 1 year ago

I have this project and this file that I was using with raw.githack.com (link to hosted version).

On the development chrome browser it works fine, the javascript file loads and everything works as I would expect. But when I try to open this on the non-dev/consumer browser, I get these errors:

GET https://raw.githack.com/kennethjmyers/SpellingBeeTrainer/main/public/trainer.js net::ERR_ABORTED 404

Refused to execute script from 'https://raw.githack.com/kennethjmyers/SpellingBeeTrainer/main/public/trainer.js' because its MIME type ('') is not executable, and strict MIME type checking is enabled.

The file does seem to exist, you can open it and see it, so I've tried to learn more about the second error and from what I read this seems to be determined on the server side and not by the type I set here.

neoascetic commented 1 year ago

Hey, yeah, so MIME error is because of 404 returned from the server. Any specific Chrome version? It works on my side, I am able to load the file, so I can suspect this could be because of some antivirus program.

kennethjmyers commented 1 year ago

It is working on my end today as well 🙃 I was changing a few things last night but not sure what change I might have made that fixed this. Appreciate the speedy reply, thanks!