Install npm install allowaccess import AllowAccess from "allowaccess"; Peer idea: use with Express (or any middleware stack with (req, res, next)).