Fix a CORS test to work with https support