Set secure flag to prevent cookies to be leaked via non encrypted requests.