Report this

What is the reason for this report?

Safari browsers can't connect to my droplet unless the https:// is specified in the address bar.

Posted on September 7, 2021

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.



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!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.