Question

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.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @nquirk22

You should already have the HTTP to HTTPS redirection if other browsers redirect you to the secure version of your site/app.

You can test this on another machine/device running Safari in order to ensure that the issue remains.

Regards, Alex