Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
TatianaS7 committed Jan 8, 2024
1 parent a9f18d2 commit c819751
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const cors = require("cors");

const app = express();

app.use(cors({ origin: 'https://chuck-stewart-archive.web.app' }));

const dbUrl = process.env.JAWSDB_URL;
const params = url.parse(dbUrl);
const auth = params.auth.split(':');
Expand All @@ -27,9 +29,6 @@ app.get("/", (req, res) => {
res.redirect("/login.html");
});


app.use(cors({ origin: 'https://chuck-stewart-archive.web.app' }));

app.use(express.json()); // For parsing application/json
app.use(express.urlencoded({ extended: true })); // For parsing application/x-www-form-urlencoded
app.use((err, req, res, next) => {
Expand Down

0 comments on commit c819751

Please sign in to comment.