Redirecting to secure API using HTTPS protocol.