Creating CORS handler