From 2eaabf8eeb52a049a721bb96bd3d29e5c5040a8e Mon Sep 17 00:00:00 2001 From: Nick Coutsos Date: Wed, 17 Nov 2021 11:25:19 -0500 Subject: CORS origin --- api/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/index.js b/api/index.js index 59db3cb..d45471c 100644 --- a/api/index.js +++ b/api/index.js @@ -10,7 +10,9 @@ const keyboards = require('./routes/keyboards') const app = express() app.use(bodyParser.json()) -app.use(cors()) +app.use(cors({ + origin: 'https://nickcoutsos.github.io' +})) if (process.env.ENABLE_DEV_SERVER) { applicationInit(app) -- cgit v1.2.3