Add CORS middleware to enable cors for all routes.