diff --git a/backend-node/index.js b/backend-node/index.js index 5342868..6063ab8 100644 --- a/backend-node/index.js +++ b/backend-node/index.js @@ -1,3 +1,4 @@ +import cors from 'cors'; import express from 'express'; import auth from './routes/auth.js'; @@ -8,6 +9,7 @@ import webhooks from './routes/webhooks.js'; const app = express(); const port = process.env.VCR_PORT || process.env.PORT || 3000; +app.use(cors()) app.use(express.json()); app.use('/', auth); diff --git a/backend-node/package.json b/backend-node/package.json index 328f90c..3c2cb87 100644 --- a/backend-node/package.json +++ b/backend-node/package.json @@ -15,6 +15,7 @@ "@vonage/vcr-sdk": "^1.2.0", "axios": "^1.6.5", "bcrypt": "^5.1.1", + "cors": "^2.8.5", "express": "^4.18.1", "jsonwebtoken": "^9.0.2", "multer": "^1.4.5-lts.1"