Skip to content

Commit

Permalink
✨ remove cors
Browse files Browse the repository at this point in the history
  • Loading branch information
w3cj committed Jun 15, 2020
1 parent 3faaa57 commit 20a003c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path');
const express = require('express');
const cors = require('cors');
const morgan = require('morgan');
const helmet = require('helmet');
const yup = require('yup');
Expand All @@ -19,8 +18,7 @@ const app = express();
app.enable('trust proxy');

app.use(helmet());
app.use(morgan('tiny'));
app.use(cors());
app.use(morgan('common'));
app.use(express.json());
app.use(express.static('./public'));

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

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"author": "CJ R. <[email protected]> (https://w3cj.sh)",
"license": "MIT",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-rate-limit": "^5.1.3",
Expand Down

0 comments on commit 20a003c

Please sign in to comment.