I like the 'new' syntax better
Don't reinvent cors which already exists

https://www.npmjs.org/package/cors