Fix 'Access Denied: Invalid Recipient' error due to http/https mismatch