snapCloud icon indicating copy to clipboard operation
snapCloud copied to clipboard

localhost sessionStorage and Cookies not saving for Chromium based browsers

Open ochan1 opened this issue 4 years ago • 1 comments

So apparently, Chromium-based browsers do not automatically save localhost storage for some reason

Browsers tested include:

  • Safari: Success (Mac only)
  • FireFox: Success (Mac and Windows)
  • Opera (Chromium): Login Failure (Mac and Windows)
  • Chrome: Login Failure (Mac and Windows)
  • Microsoft Edge (Chromium): Login Failure

They were tested by attempting login to an Admin account made by me and then navigating to the User Administration to trigger a backend login read

There are no problems with this on the main site and appears to only be when localhost is used

Strange behavior as code I have worked on in the past never had issues with localhost refusing to save sessionStorage or Cookies, but these were other libraries like Django, but very interesting behavior

One potential resource that may be of interest to navigate to fix this is this link: https://stackoverflow.com/questions/13292744/why-isnt-localstorage-persisting-in-chrome where we could have a save by a fake read supposedly.

I'll look into this as soon as possible, but left here just in case

In the meantime: Firefox or Safari should be the browser of choice to use for testing the website login flow

ochan1 avatar Mar 20 '21 09:03 ochan1

Issue handled in this Pull Request: https://github.com/snap-cloud/snapCloud/pull/284

ochan1 avatar Apr 27 '21 12:04 ochan1