Safari (and other Apple / Mac App Store apps) won't connect to the internet, but other browsers will
Recently started having trouble with Safari not being able to connect to the internet even when other browsers and non Apple apps can. A restart fixes it, but if I close my MacBook or use a different app for a while and come back to Safari it says I am not connected to the internet. It also affects all other Apple apps, as well as apps downloaded from the app store (Twitter, Prime Video). However, I am still able to use browsers like Edge and apps like Outlook have no issues connecting. I am running MacOS 13.3.1 (a) on a 2021 14-inch MacBook Pro.
MacBook Pro 14″, macOS 13.3