I am having these problems in 4.1 as well. Can someone shed some light? I set the following in the config file, but still have issues. Do I need to set the ForwaredHttpHeader value?
"Hosting": {
//Set to "true" the settings below if your hosting uses a load balancer. It'll be used to determine whether the current request is HTTPS
"UseHttpClusterHttps": true,
"UseHttpXForwardedProto": true,
//Use the setting below if your hosting doesn't use "X-FORWARDED-FOR" header to determine IP address.
//In some cases server use other HTTP header. You can specify a custom HTTP header here. For example, CF-Connecting-IP, X-FORWARDED-PROTO, etc
"ForwardedHttpHeader": ""
},