Connect Middleware to provide cross origin resource sharing