Files
mirror-3x-ui/frontend/src
Sanaei d0dc4550c2 fix(settings): do not wait 90 s for a restart target on another origin
Since #7205 the page polls its post-restart address before navigating.
When the restart changes the panel's port or turns its TLS on or off, that
address is another origin, and the panel's own CSP (connect-src 'self')
rejects the probe exactly like a refused connection. The poll could never
succeed, so every such restart showed the spinner for the full 90 seconds
although the panel was back after five.

Poll only a same-origin target, which is the reverse-proxy case the wait
was added for. Another origin gets the restart delay alone, as before
#7205. The mixed-content fallback goes with it: its only source was the
http:// target the page used to build behind a TLS proxy.
2026-11-25 17:39:46 +03:30
..