Added CORS (cross-origin) processing to handlers