IOS simulator not connecting to https resources

I am trying to take screenshots in the iOS simulator for my app. Unfortunately loading things like api.mapbox.com won’t work because it’s trying to connect https and getting the error:

An SSL error has occurred and a secure connection to the server cannot be made

Is there any way around this? I’ve tried so far as to make Vite run https but the simulator doesn’t seem to like that. Any tips or tricks I don’t know about?

Maybe some ionic capacitor run command I don’t know about? Thanks!