diff --git a/index.js b/index.js index f20904e..1b95e52 100644 --- a/index.js +++ b/index.js @@ -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'); @@ -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')); diff --git a/package-lock.json b/package-lock.json index ee9ebc0..19dd402 100644 --- a/package-lock.json +++ b/package-lock.json @@ -348,15 +348,6 @@ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" }, - "cors": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", - "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", - "requires": { - "object-assign": "^4", - "vary": "^1" - } - }, "crypto-random-string": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", diff --git a/package.json b/package.json index 3a1f8c8..4a66fad 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "author": "CJ R. (https://w3cj.sh)", "license": "MIT", "dependencies": { - "cors": "^2.8.5", "dotenv": "^8.2.0", "express": "^4.17.1", "express-rate-limit": "^5.1.3",