bastienwirtz / homer

A very simple static homepage for your server.
https://homer-demo.netlify.app/
Apache License 2.0
9.32k stars 787 forks source link

Firefox seems to bypass CORS issue, but 401 unauthorised error with qbittorrent #827

Closed tryolly closed 2 hours ago

tryolly commented 3 hours ago

This is more of a question than an issue, but thought I might get some help here as I've had no luck on reddit.

I'm running some services on a local only server and trying to use the Homer Ping fuctionality. Since I'm not using a reverse proxy I'm getting the issue with the CORS policy preventing an online status, however, this is only an issue with the chromium browser. Firefox, which is my daily driver, works fine (I don't know why) so all good.

The problem is that qbittorrent refuses to show as online, I'm getting a 401 unauthorised error. So I was wondering if anyone here has run into this problem and if they managed to solve it? In qbittorrent settings I have local subnet excluded from authorisation, I have also set the Access-Control-Allow-Origin: * setting and I'm using the GET method. none of that solves the issue though.

tryolly commented 2 hours ago

I posted too soon. I was able to solve this issue with Tools -> Options -> Web UI -> In the Security section uncheck "Enable Cross-Site Request Forgery (CSRF) protection".