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