supergeorg / Grocy-SwiftUI

A client for Grocy for macOS and iOS, written with SwiftUI
GNU General Public License v3.0
177 stars 17 forks source link

http doesn't work. #196

Open 343max opened 6 months ago

343max commented 6 months ago

When I try to connect to a server via http I receive this error: Connection to server failed. Error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection.

How do I use http?

supergeorg commented 6 months ago

Hi, where do you have your host?

If it only has HTTP, then usage outside of local networks is discouraged. The next update will have a specific App configuration set (NSAllowsLocalNetworking) to allow local networking even with HTTP.

343max commented 6 months ago

My host is on my Tailscale network, so http is perfectly fine.

supergeorg commented 6 months ago

Ok, so I guess it looks like the exit node is in your local network. So the change might fix it.

johnhkchen commented 5 months ago

For Tailscale users, try using:

sudo tailscale serve --bg http://127.0.0.1:8080

That will give you a working HTTPS URL to connect to

pmkruyen commented 3 months ago

I run Tailscale as addon in Home Assistant. Do you know how to enable this setting on the dashboard?

If not possible, I wait till the new version of the app.

Edit: think I found it under the DNS settings.