AllowInsecureConnection- This setting controls whether or not the server will only accept https:// connections, or if it will accept both http:// and https:// connections. By default, this setting is set to false.
To only allow https:// connections to the server, this setting should be set to false.
To allow both http:// and https:// connections to the server, this setting should be set to true.
Note:
If AllowInsecureConnection is set to false, then the server must be correctly configured for HTTPS connections.