Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Safari browsers can't connect to my droplet unless the https:// is specified in the address bar.
I am running a Spring Boot server with an Angular application on a Docker container. The Tomcat server is configured to serve over 443.
If I visit the site from a PC, the browser automatically connects over SSL. On Safari in MacOS or iOS, the browser will show “Connection could not be established” until the protocol is specified. Once I specify protocol, the DNS cache saves the request and I no longer need to put https:// on subsequent visits to the page until the DNS cache expires.
I have tried configuring my server to redirect all port 80 requests to 443 but that doesn’t seem to be working.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×