diff options
Diffstat (limited to 'api/index.js')
-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) |