Logout and cors issue Access-Control-Allow-Origin with https