From 410cb3dd28743066bdd6746d8a71e0e04454df82 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Thu, 29 Feb 2024 13:28:26 -0600 Subject: [PATCH 1/2] Fix CORS formatting. --- backend/src/api/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/app.ts b/backend/src/api/app.ts index 040f74109..16f13526b 100644 --- a/backend/src/api/app.ts +++ b/backend/src/api/app.ts @@ -61,7 +61,7 @@ app.use(express.json({ strict: false })); app.use( cors({ - origin: ['*'], + origin: '*', methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'] }) ); From ad769dcc6f63dc5018fc9d0831c5f5d05003abb0 Mon Sep 17 00:00:00 2001 From: "Grayson, Matthew" Date: Thu, 29 Feb 2024 13:32:43 -0600 Subject: [PATCH 2/2] Fix CORS formatting. --- frontend/scripts/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/scripts/constants.js b/frontend/scripts/constants.js index cd95e7b9f..3520ae39e 100644 --- a/frontend/scripts/constants.js +++ b/frontend/scripts/constants.js @@ -1,3 +1,3 @@ //CORS Options -export const ALLOW_ORIGIN = ['*']; +export const ALLOW_ORIGIN = '*'; export const ALLOW_METHODS = ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'];