Middleware implementation for express that provides a configurable CORS implementation for the server