0
votes

I have configured an Azure web service to use a custom domain and successfully verified both the root domain and subdomain (www) in addition to binding a TLS cert to both.

Custom domain page: enter image description here

When I navigate to http://example.com, the browser correctly redirects to https://example.com.

However, when I navigate to the subdomain http://www.example.com, the browser does not redirect to https. I can however navigate directly to my subdomain over https via https://www.example.com.

Why is Azure not enforcing the "Https Only" setting on the subdomain?

Update: screenshot from TLS/SSL settings page: enter image description here

1
Is there any CORS policy in your application, if any then check and updateharry

1 Answers

0
votes

It seems everything you have done is okay... I just post what works on my side, you can have a look and check with yours.

After map custom domain, navigate to TLS/SSL settings, enable Https Only: enter image description here

And ensure enable Https Only in custom domain page, too: enter image description here

Here is my test: enter image description here