https
Securing your iOS app or webpage app in Safari with HTTPS: A guide to local SSL certificates
HTTPS for local iOS development with mkcert: generate a local certificate authority, create SSL certificates for your dev domains, and install the root certificate on a simulator or real device so Safari and your native app trust your local Rails server.