RTFM - Read the manual. app.use(cors) -> app.use(cors())