createCORSRequest call fix