Add CORS support to api responses.