Support module export
Handle CORS errors