sindresorhus / Plash

💦 Make any website your Mac desktop wallpaper
https://sindresorhus.com/plash
MIT License
3.51k stars 129 forks source link

Plash always asks for Basic Auth login even when it's already saved #157

Closed StashPowerUser closed 9 months ago

StashPowerUser commented 9 months ago

To reproduce

Steps to reproduce the behavior:

  1. Set up a website that uses basic auth
  2. Login to basic auth with prompt
  3. Restart plash
  4. See plash load website logged in but still show login prompt

If this is intentional behavior it would be nice to have an option to disable the login prompt after logging in.

sindresorhus commented 9 months ago

If you try the URL https://jigsaw.w3.org/HTTP/Basic/ with guest as username and password in Plash, does it prompt again on the next launch? If not, this maye be a server issue.

StashPowerUser commented 9 months ago

That seemed to work as expected.

I'll try to isolate what's going on better on my end and re-open this with more detail if I do.

StashPowerUser commented 9 months ago

I was able to replicate similar behavior in a safari private window (but not a regular window)

Looking at the network inspector, the issue seems to be related to websocket (wss://) connections on the same domain.

I'll see if I can put together an example site to show the issue later.

StashPowerUser commented 9 months ago

It is an issue with web sockets, for my use case I was able to exclude the web socket endpoint from basic auth and that resolved the issue in plash.