Booksonic-Air
Booksonic-Air copied to clipboard
Cannot access settings without typing it in address bar.
Problem description
Cannot access settings.view without actually typing it in the address bar
Steps to reproduce
Describe how somebody else could observe the same behavior you do. If possible, include relevant configuration or files that cause the problem. If sharing media files, ensure you are legally permitted to share copies!
- login to the web gui and click on settings.
- nothing happens.
System information
- Airsonic version: Airsonic 8b28366
- Operating system: Windows 10 LTSC
- Java version: 8 update 261
- Proxy server: Nginx Proxy Manager
- Client: *Firefox or Chrome
- Language: English
Additional Notes
This works fine when i'm accessing it directly by IP.. something odd with the proxy..
I see this too, although I cannot say whether it works when accessing via IP. I'm using a subdomain for booksonic, if that makes a difference (like "https://booksonic.example.com").
For now I'm using the workaround of typing "https://booksonic.example.com/musicFolderSettings.view" when I want to change any settings.
I see this too, although I cannot say whether it works when accessing via IP. I'm using a subdomain for booksonic, if that makes a difference (like "https://booksonic.example.com").
For now I'm using the workaround of typing "https://booksonic.example.com/musicFolderSettings.view" when I want to change any settings.
Exactly the same.. using a subdomain myself too.. booksonic.domain.co.uk with a lets ecnrypt ssl certificate
I've tried adding the context_path variable (i'm now running this in docker) but i'm not really sure what i'm meant to do with it.. i'm running as a subdomain so im not sure it's needed
In chrome i'm getting this error in the console :
Mixed Content: The page at 'https://booksonic.domain.co.uk/index' was loaded over HTTPS, but requested an insecure resource 'http://booksonic.domain.co.uk/musicFolderSettings'. This request has been blocked; the content must be served over HTTPS.
Before this fixed We can let chrome load the Insecure content for this site instead of block it. Refer to: https://experienceleague.adobe.com/docs/target/using/experiences/vec/troubleshoot-composer/mixed-content.html?lang=en
I was going crazy with nginx trying to use sub_filter to modify the content to change http over to https, I tried all sorts of headers on both the frontend and backend, etc. and I could not get around that Mixed Content error message in Chrome.
@Karamba91 's suggestion of changing airsonic.properties and adding 'server.use-forward-headers=true' worked perfectly. Now I can click around all the various links and everything is https, everything works. Thank you.
To all people who keep finding this thread/bug just as I did, modify your airsonic.properties file (this exists even in booksonic-air) and add server.use-forward-headers=true