Updated CORS sample