I am integrating Auth0 into my Ionic 6 Angular app, which requires the library to be run on a server with a secure origin (auth0-spa-js/FAQ.md at 451956f5615bdd7e8fe3c313dbe30d1e31b855f1 · auth0/auth0-spa-js · GitHub). When I run the ionic serve in development mode with live reload, I cannot get the server to run securely on iOS devices.
I have been running ionic capacitor run ios -l --external --ssl to launch an https server, however xcode does not seem to allow a self-signed certificate. I have tried to add the certificate generated by ionic ssl generate to my iOS device without any luck.
Everything works if I run a full build and deploy, but I can’t connect to a development server as xcode outputs the following error message:
Error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “X.X.X.X” which could put your confidential information at risk.
Has anyone gotten ssl working with the livereload feature of Ionic and Capacitor for iOS?
1 post - 1 participant