Update server.js
This commit is contained in:
@@ -5,7 +5,7 @@ const cors = require("cors");
|
|||||||
const jwt = require("jsonwebtoken")
|
const jwt = require("jsonwebtoken")
|
||||||
const dotenv = require("dotenv")
|
const dotenv = require("dotenv")
|
||||||
|
|
||||||
const serverPort = 3000;
|
const serverPort = 3001;
|
||||||
|
|
||||||
const dev = process.argv.length > 2 && process.argv[2] == "-dev";
|
const dev = process.argv.length > 2 && process.argv[2] == "-dev";
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ app.use(express.static("public"))
|
|||||||
app.use(cors({
|
app.use(cors({
|
||||||
origin: [
|
origin: [
|
||||||
"https://project.rochesterx.dev",
|
"https://project.rochesterx.dev",
|
||||||
"https://localhost:3000"
|
"https://localhost:3001"
|
||||||
]
|
]
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user