airsonic icon indicating copy to clipboard operation
airsonic copied to clipboard

MIME type mismatch when running in development

Open macguirerintoul opened this issue 4 years ago • 3 comments

Problem description

Hi, I'd like to try contributing but can't seem to get things running properly. I've gotten as far as running the app, but scripts and styles aren't loaded. Full error messages are all similar to the following:

The resource from “http://localhost:8080/script/jquery.toastmessage/css/jquery.toastmessage.css” was blocked due to MIME type (“application/json”) mismatch (X-Content-Type-Options: nosniff).

Steps to reproduce

  1. Clone repo
  2. Run Application.java
  3. Go to localhost:8080

System information

  • Airsonic version: pulling from master branch
  • Operating system: macOS Catalina 10.15.7
  • Java version: 13.0.1
  • Proxy server: None
  • Client: Firefox 83.0 and Chrome 87.0.4280.88
  • Language: English

Additional notes

image

macguirerintoul avatar Dec 15 '20 05:12 macguirerintoul

I would try on the release-10.6 branch first. There's a chance things are broken in master..

muff1nman avatar Dec 17 '20 01:12 muff1nman

Thanks! I tried on that branch and I'm getting the same errors. I'm also trying to get it running in a Docker container to see if it's something wrong with my machine.

macguirerintoul avatar Dec 19 '20 02:12 macguirerintoul

You didn't mention your IDE, but sounds like your IDE didn't run all the mvn phases because its missing a bunch of stuff that should've been copied into compile target folders. I think you may need to mvn clean compile package first.

You may also consider cloning and contributing on https://github.com/airsonic-advanced/airsonic-advanced The branches there aren't broken so you may have an easier time.

randomnicode avatar Feb 15 '21 00:02 randomnicode