airsonic
airsonic copied to clipboard
MIME type mismatch when running in development
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
- Clone repo
- Run
Application.java
- 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
I would try on the release-10.6 branch first. There's a chance things are broken in master..
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.
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.