syncloud / platform

Run popular services on your device with one click
https://syncloud.org
GNU General Public License v3.0
401 stars 40 forks source link

[UI] Https switch cannot detect finish if device is accessed by external url #211

Closed cyberb closed 6 years ago

cyberb commented 7 years ago

Https switch will change device url (80 -> 443) so current javascript checking switch status using http url stops working and we get 400 Bad Request (trying to access https site with http protocol)

Probably we should detect 400 and treat it as successful https switch and redirect to https protocol. The problem is when port is changing, probably we can send user to redirect account page.

Internal mode is fine as we always have http and https protocols running side-by-side, external mode just opens one of them to the internet.

cyberb commented 6 years ago

As we have HTTPS only mode, this is not a problem anymore.