Question

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

Posted September 7, 2021 53 views
DockerJavaAngular

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.

×
Submit an Answer
1 answer

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