Add CORS CLI flag and middleware.