Enabling cross-origin resource sharing (CORS)