Updating the build scripts to handle CORS.