Updating CORS configuration. Adding cors middleware.