Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Web UI returns "Unauthorized" (401) when trying to access Sunshine panel on https://localhost:47990

Open daviddaco1 opened this issue 1 year ago • 7 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Is your issue described in the documentation?

  • [x] I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

When attempting to access the Sunshine web panel via https://localhost:47990, the browser only shows a JSON response:

{"error":"Unauthorized","status":false,"status_code":401}

Steps to Reproduce

Install Sunshine on Windows (latest stable release).

Start Sunshine (service or tray icon).

Open browser and go to https://localhost:47990.

Observe that instead of showing the login interface, the browser displays a JSON error.

Image

Expected Behavior

The Sunshine web interface should display the login or setup page when accessed locally via HTTPS.

Additional Context

No response

Host Operating System

Windows

Operating System Version

Windows 11

Architecture

amd64/x86_64

Sunshine commit or version

[2025-10-03 14:37:26.480]: Info: Sunshine version: 2025.924.154138 commit: 86188d47a7463b0f73b35de18a628353adeaa20e [2025-10-03 14:37:26.480]: Info: Package Publisher: LizardByte [2025-10-03 14:37:26.480]: Info: Publisher Website: https://app.lizardbyte.dev [2025-10-03 14:37:26.480]: Info: Get support: https://app.lizardbyte.dev/support

Package

Windows - installer (recommended)

GPU Type

NVIDIA

GPU Model

RTX 3060

GPU Driver/Mesa Version

581.42

Capture Method

None

Config

Empty

Apps

{
  "env": {},
  "apps": [
    {
      "name": "Desktop",
      "image-path": "desktop.png"
    },
    {
      "name": "Steam Big Picture",
      "cmd": "steam://open/bigpicture",
      "prep-cmd": [
        {
          "do": "",
          "undo": "steam://close/bigpicture"
        }
      ],
      "auto-detach": true,
      "wait-all": true,
      "image-path": "steam.png"
    }
  ]
}

Relevant log output

None

daviddaco1 avatar Oct 03 '25 19:10 daviddaco1

[2025-10-04 17:11:40.787]: Info: System tray thread started [2025-10-04 17:11:40.794]: Info: Configuration UI available at [https://localhost:47990] [2025-10-04 17:11:40.819]: Info: System tray created [2025-10-04 17:11:40.821]: Info: System tray thread initialized successfully [2025-10-04 17:11:40.822]: Info: No main thread features enabled, skipping event loop [2025-10-04 17:11:41.555]: Info: Registered Sunshine mDNS service [2025-10-04 17:11:54.419]: Info: Web UI: [127.0.0.1] -- not authorized [2025-10-04 17:12:04.473]: Info: New credentials have been created [2025-10-04 17:12:09.508]: Info: Web UI: [127.0.0.1] -- not authorized [2025-10-04 17:12:09.513]: Info: Web UI: [127.0.0.1] -- not authorized

daviddaco1 avatar Oct 04 '25 22:10 daviddaco1

Is your browser or an extension blocking basic authentication?

ReenigneArcher avatar Oct 04 '25 22:10 ReenigneArcher

Is your browser or an extension blocking basic authentication?

I was able to log in in incognito mode, I disabled the extensions and I was able to log in in normal mode as well, I only have adsblock and metamask so I don't see why they block this address, and it's strange because it started happening from one time to another.

daviddaco1 avatar Oct 05 '25 19:10 daviddaco1

Hi, we found a new issue with the win11 update, which caused localhost to be inaccessible. I know it should not be related to this issue. But if you encounter this problem, you can pay attention to it

https://learn.microsoft.com/en-us/answers/questions/5585563/localhost-not-working-anymore-after-2025-10-cumula The October 2025 Cumulative Update (KB5066835) has introduced a regression affecting certain HTTP/2 and loopback traffic scenarios.

Yundi339 avatar Oct 22 '25 15:10 Yundi339

hi, how did you fix this?

kira-pareser avatar Jan 28 '26 16:01 kira-pareser

same using on fedora stock install

Noext avatar Feb 07 '26 18:02 Noext

@kira-pareser @Noext i fixed this by using edge and not chrome but you might try using another browser i guess

DanaTheScripter avatar Feb 10 '26 12:02 DanaTheScripter