diff --git a/routes/api.js b/routes/api.js index eec6f44..0349928 100644 --- a/routes/api.js +++ b/routes/api.js @@ -10,9 +10,8 @@ const video = require('../utils/video'); const dbTester = require('../test/dbTester'); const cors = require('cors'); // Import the cors package -// Use the cors middleware router.use(cors({ - origin: 'http://localhost:5500', // Replace with your frontend URL + origin: 'http://127.0.0.1:5500', methods: 'GET,POST,PUT,DELETE', allowedHeaders: 'Content-Type', }));