From e40836d60dfa498ce6ade3e4d9b36d4acd2a4e77 Mon Sep 17 00:00:00 2001 From: Jonathan Jara Date: Fri, 6 Jun 2025 01:35:12 -0700 Subject: [PATCH] collection added --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!');