From bf32cc47bb92922432d8e0f6a6e1ac65e0afa5ef Mon Sep 17 00:00:00 2001 From: unfiltered-syrup Date: Thu, 7 Dec 2023 12:07:47 -0500 Subject: [PATCH] cors fix --- back-end/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back-end/app.js b/back-end/app.js index 2eb49de..f9972d2 100644 --- a/back-end/app.js +++ b/back-end/app.js @@ -18,7 +18,7 @@ mongoose app.use(express.json()); app.use(morgan('dev', { skip: (req, res) => process.env.NODE_ENV === 'test' })); -app.use(cors({ origin: process.env.FRONT_END_DOMAIN, credentials: true })); +app.use(cors({ credentials: true })); app.use(express.static(STATIC_FOLDER)); const feedbackRoutes = require('./routes/feedback-routes.js');