diff options
author | Nick Coutsos <[email protected]> | 2021-11-17 11:25:19 -0500 |
---|---|---|
committer | Nick Coutsos <[email protected]> | 2021-11-17 13:00:01 -0500 |
commit | 2eaabf8eeb52a049a721bb96bd3d29e5c5040a8e (patch) | |
tree | 1a5f7ca24d918109bc856c0e8200fbf1291ab249 | |
parent | 4768c47cee5d8a0c8d712b81aef760578a9cf6a9 (diff) | |
download | keymap-editor-2eaabf8eeb52a049a721bb96bd3d29e5c5040a8e.tar.gz keymap-editor-2eaabf8eeb52a049a721bb96bd3d29e5c5040a8e.zip |
CORS origin
-rw-r--r-- | api/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
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) |