From e06cae8c8f6eddf4cddb315f2df399e6e87f634a Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Tue, 20 Jul 2021 10:19:10 -0700 Subject: [PATCH] adding cors 2 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index be00490..b2245cd 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ const cookieParser = require('cookie-parser'); const cors = require('cors'); var corsOptions = { - origin: '*', + origin: 'http://localhost:8080', credentials: true }; app.use(cors(corsOptions)); app.use(bodyParser.json());