aboutsummaryrefslogtreecommitdiff
path: root/vnext/server/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/server/index.js')
-rw-r--r--vnext/server/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/vnext/server/index.js b/vnext/server/index.js
index 729f05d6..c347739f 100644
--- a/vnext/server/index.js
+++ b/vnext/server/index.js
@@ -1,4 +1,6 @@
import express from 'express';
+import { raw } from 'body-parser';
+import cors from 'cors';
import config from 'config';
// we'll talk about this in a minute:
@@ -12,6 +14,8 @@ const path = require('path');
// initialize the application and create the routes
const app = express();
+app.use(raw());
+app.use(cors());
const router = express.Router();
router.post('/api/sender', event);