Flutter - http.get fails on macos build target: Connection failed
问题 I started porting my Flutter app to macos Desktop . The UI started fine. However, as soon as the app makes a network call, it fails instantly with Connection failed (OS Error: Operation not permitted) . Running a one-liner: final response = await http.get('https://jsonplaceholder.typicode.com/posts/1'); fails with: Unhandled Exception: SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = jsonplaceholder.typicode.com, port = 443 #0 IOClient.send (package