Is it ok using local LAN names such as pi04.local?
yes that works indeed.
Thanks for sharing, but it's unrelated to my issue. I already connect using DNS name.
Interesting. I've just been testing some new front-end code for uibuilder on Mac (latest) and web sockets do seem to be working. However, I am using a secured link (HTTPS/WSS) which was alluded to in the shared thread.
Why anyone uses Safari is beyond me, it is the IE of the 2020's. It ignores new standards, sometimes forever, sometimes for years. All-round, a pain.
Thankfully, you can, these days, use sensible browsers like Vivaldi or not so sensible ones like Firefox on iOS and Mac. ![]()
BTW, the new additions to the uibuilder client library are cross-browser stack-traces. Work great on Chromium and Firefox browsers but virtually useless on Safari as it does not provide much in the way of useful info. Sadly, while stack trace standards are currently making their way into the JavaScript standards, the output formats are still being left up to the browser which is a pain because the different engines use different formats.
You said in the first post that it hangs on startup .with the disconnected image'. Do you mean the 'Connection Lost Attempting to reconnect to server' popup? If so, with the original s/w, if you leave it 5 minutes (or a little more) does it recover?
Landed here because I hit the identical problem on a completely different PWA: Home Assistant behind Cloudflare Tunnel + Access. Same three-way trap: Service Worker replays the cached shell before the network is consulted, CORS strips the 302 redirect from background fetches, WebSockets abort on HTML instead of a 101 handshake. Nice writeup of the root cause. Nobody else seems to have pinned it down this precisely.
For anyone who needs a runtime-only fix while waiting for an upstream release (Node-RED, HA, or otherwise), I published a drop-in JS module that polls with a cache-buster + redirect: 'manual' to detect the Cloudflare wall, unregisters the SW, and reloads: GitHub - mayerwin/HA-Cloudflare-Access-Recovery: Self-healing Cloudflare Access auth for Home Assistant - recovers the HA web frontend in any browser (desktop or mobile) when the CF_Authorization cookie expires. Ā· GitHub
It's shaped for HA but the detection logic is generic to any PWA behind Cloudflare Access. Happy to see pakerfeldt's PR moving. Removing the SW from the nav path is the cleaner fix if you control the app.
Are you seeing this issue on Android (the cache issue I mean, not the CORS issue)?
[Edit] By the CORS issue I meant Hang with Connection Lost message when using authentication proxy and session times out whilst page is inactive Ā· Issue #2074 Ā· FlowFuse/node-red-dashboard Ā· GitHub which has a PR waiting for review.