ItsNotGoodName / reciva-web-remote

Control your legacy Reciva based internet radios (Crane, Grace Digital, Tangent, etc.) via web browser or HTTP API.
MIT License
7 stars 1 forks source link

Wrong MIME type for javascript files #2

Open 135497 opened 2 years ago

135497 commented 2 years ago

I tryed reciva-web-remote_0.9.1_windows_amd64, but I get: "Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec."

The web server is responding to .js requests with a "text/plain" for, at least index..js and vendor.*.js; example: Request URL: http://127.0.0.1:8080/assets/index.5df3bfa2.js ... In response Header: Content-Type: text/plain; charset=utf-8

I have: User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

ItsNotGoodName commented 2 years ago

It has been fixed in v0.9.2 by treating all .js file types as application/javascript. Try to see if the new version fixed your issue.