Skip to content

Commit

Permalink
add cors (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulajet authored Jun 14, 2024
1 parent 94d71c9 commit 95a6e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend-node/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import cors from 'cors';
import express from 'express';

import auth from './routes/auth.js';
Expand All @@ -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);
Expand Down
1 change: 1 addition & 0 deletions backend-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 95a6e0b

Please sign in to comment.