diff --git a/routes/api.js b/routes/api.js index 0349928..26ec23a 100644 --- a/routes/api.js +++ b/routes/api.js @@ -11,7 +11,7 @@ const dbTester = require('../test/dbTester'); const cors = require('cors'); // Import the cors package router.use(cors({ - origin: 'http://127.0.0.1:5500', + origin: ['http://127.0.0.1:5500', 'http://localhost:5500'], methods: 'GET,POST,PUT,DELETE', allowedHeaders: 'Content-Type', }));