For a SwiftUI / MacCatalyst app that is sandboxed, I was able to fix this issue for my app by simply clicking the Network > Outgoing Connections (Client) checkbox in the Signing & Capabilities tab for the Target for my app.