nextjs-cors is a node.js package to provide a Connect/Express middleware that can be used to enable CORS with various options.