Skip to content

Commit 20a003c

Browse files
committed
✨ remove cors
1 parent 3faaa57 commit 20a003c

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const path = require('path');
22
const express = require('express');
3-
const cors = require('cors');
43
const morgan = require('morgan');
54
const helmet = require('helmet');
65
const yup = require('yup');
@@ -19,8 +18,7 @@ const app = express();
1918
app.enable('trust proxy');
2019

2120
app.use(helmet());
22-
app.use(morgan('tiny'));
23-
app.use(cors());
21+
app.use(morgan('common'));
2422
app.use(express.json());
2523
app.use(express.static('./public'));
2624

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"author": "CJ R. <[email protected]> (https://w3cj.sh)",
1212
"license": "MIT",
1313
"dependencies": {
14-
"cors": "^2.8.5",
1514
"dotenv": "^8.2.0",
1615
"express": "^4.17.1",
1716
"express-rate-limit": "^5.1.3",

0 commit comments

Comments
 (0)