Skip to content

Commit

Permalink
Merge pull request #14 from smartive/feat/cors
Browse files Browse the repository at this point in the history
feat: Cors
  • Loading branch information
nickredmark authored Oct 16, 2020
2 parents 0ab4176 + c80f5a2 commit c113cd3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const express = require("express");
const bodyParser = require("body-parser");
const cors = require('cors')
const { SMTPServer } = require("smtp-server");

const app = express();
Expand Down Expand Up @@ -29,6 +30,7 @@ Structure of route:
*/

app.use(cors({ origin: `*`}))
app.use(bodyParser.json());
app.use(bodyParser.text());

Expand Down
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"express": "^4.16.4",
"smtp-server": "^3.6.0"
},
Expand Down

0 comments on commit c113cd3

Please sign in to comment.