diff --git a/app.js b/app.js index 39d5482..3830885 100644 --- a/app.js +++ b/app.js @@ -18,7 +18,7 @@ connectDB(); app.use("/uploads", express.static(path.join(__dirname, "uploads"))); app.use(express.json()); -app.use(cors({ origin: true, methods: ["GET","POST","OPTIONS",…], allowedHeaders: ["Content-Type","Authorization"] })); +app.use(cors({ origin: true, methods: ["GET","POST","OPTIONS"], allowedHeaders: ["Content-Type","Authorization"] })); app.get('/', (req, res) => { res.send('Hello World!');