Expressjs middleware that allows dynamically manipulate CORS headers