krateng / maloja

Self-hosted music scrobble database to create personal listening statistics and charts
https://maloja.krateng.ch
GNU General Public License v3.0
1.18k stars 69 forks source link

Search only works on localhost #368

Open SirMartin opened 4 months ago

SirMartin commented 4 months ago

Hi,

For a long time, the search didn't work for me when I used Maloja via domain (managed with Nginx). I checked today and if I use the local IP address it works just fine. But when I try to search for something from the same browser but accessing to the via the domain, it cancels all the search on the redirect.

I put two screenshots comparing the localhost and the one using a domain.

Via domain image

Localhost image

I tried manually opening the API call before the redirect and it works fine with the domain.

Any ideas? Is anyone with a similar setup working? It was a time that worked fine.

SirMartin commented 4 months ago

Ok, I continue investigating, and the issue is with https, I see that somewhere internally while it is doing the redirection, it does not respect the protocol, and asks just http instead of https and the browser block it.