aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-03-21 01:36:31 -0400
committerBobby <[email protected]>2022-03-21 01:36:31 -0400
commitf1328ad385ded2558bbd57d3d39c4d4ad1f366fb (patch)
tree005d4f0ff07eb9f1bba24bc62402db14531aa137
parent19b1b5d6e5ae9bf8e878858cf8a5385cd463142b (diff)
downloadluciferreeves.github.io-f1328ad385ded2558bbd57d3d39c4d4ad1f366fb.tar.xz
luciferreeves.github.io-f1328ad385ded2558bbd57d3d39c4d4ad1f366fb.zip
Remove CORS module
-rw-r--r--server.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/server.js b/server.js
index cc428d0..49d8579 100644
--- a/server.js
+++ b/server.js
@@ -1,6 +1,5 @@
// Import Express and CORS
const express = require("express");
-const cors = require("cors");
const bodyParser = require("body-parser");
// Import the routes
@@ -41,8 +40,6 @@ app.use(function (req, res, next) {
});
// Set the port
const port = process.env.PORT || 3000;
-// Set the middleware
-app.use(cors());
app.use(bodyParser.json());
app.use(
bodyParser.urlencoded({