Home > Blockchain >  I can't reach my page on localhost when I define a new variable on my app.js file
I can't reach my page on localhost when I define a new variable on my app.js file

Time:11-24

[screenshot of the code

You should do this instead:

res.render("list", { dayWeek: day, newListItem: items });

CodePudding user response:

Is it a CORS problem?

On your express server add const cors = require('cors'); app.use(cors({ origin: 'your_client_url:your_client_port' }));

  • Related