From 6cbf91c775a95550dc21a70a66eeb5bcaf8d536b Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 9 Jul 2023 07:18:22 +0100 Subject: [PATCH] Update CORS Signed-off-by: Fred Boniface --- app.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.js b/app.js index c328621..3a1b23c 100644 --- a/app.js +++ b/app.js @@ -63,8 +63,7 @@ app.use((err, req, res, next) => { // Global Middleware: app.use(cors({ - origin: [/\.owlboard\.info$/, 'localhost'], - methods:'GET,POST,OPTIONS' + origin: [/\.owlboard\.info$/, 'localhost:5173', 'localhost:4173'] })); app.use(express.json()); //JSON Parsing for POST Requests app.use(compression()); // Compress API Data if supported by client