localhost sessionStorage and Cookies not saving for Chromium based browsers
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
Issue handled in this Pull Request: https://github.com/snap-cloud/snapCloud/pull/284