From 072cbc0883a540e4a7f99a6528135a172af48921 Mon Sep 17 00:00:00 2001 From: Judge-Paul Ogebe <110723341+Judge-Paul@users.noreply.github.com> Date: Thu, 29 Feb 2024 05:34:10 +0100 Subject: [PATCH] fix: enable cors on all --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index e5fa051..d5739fa 100644 --- a/server/index.js +++ b/server/index.js @@ -22,7 +22,7 @@ const limiter = rateLimit({ app.use(limiter); app.use(express.json()); app.use(morgan("dev")); -app.use(cors(["http://localhost:5173", "https://coverwrite.vercel.app"])); +app.use(cors()); function validateReferer(req, res, next) { const allowedReferer = "https://coverwrite.vercel.app";