npm install cors var cors = require("cors"); CORS is a node.js package for providing a Connect/Express middleware that can be used to enable CORS with various options.