Added CORS middleware

This commit is contained in:
2020-09-19 18:27:04 +10:00
parent ee402e5e26
commit 0dd654f152
3 changed files with 18 additions and 0 deletions

View File

@@ -1,8 +1,11 @@
//express for testing
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const app = express();
app.use(cors());
app.use(bodyParser.text());
//test the library