diff --git a/public/style.css b/public/style.css index ab012c2..d2ee106 100644 --- a/public/style.css +++ b/public/style.css @@ -27,7 +27,7 @@ body { display: flex; justify-content: center; gap: 5px; - margin-top: 20px; + margin: 20px 20px 0 20px; } #search-input { diff --git a/server/app.js b/server/app.js index 2102dd6..29585df 100644 --- a/server/app.js +++ b/server/app.js @@ -9,7 +9,7 @@ const cors = require("cors"); const app = express(); -app.use(cors({ origin: '*' })); +app.use(cors({ origin: 'https://chuck-stewart-archive.web.app/' })); const dbUrl = process.env.JAWSDB_URL; const params = url.parse(dbUrl); @@ -135,7 +135,7 @@ app.put("/api/database/update/:id", async (req, res) => { // Start the server -const PORT = process.env.DB_PORT || 5501; +const PORT = process.env.DB_PORT || 3000; app.listen(PORT, () => { console.log(`Server is running on port ${PORT}`); });