DEV Community

Discussion on: Enabling CORS for Node Express Backend

Collapse
 
shadowtime2000 profile image
shadowtime2000
const express = require('express')
const cors = require('cors')
const app = express()

app.use('cors')
Enter fullscreen mode Exit fullscreen mode

I am not that proficient with express but I am pretty sure a string is invalid and if it isn't it probably isn't a good practice.