Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
Express render () no funciona en la solicitud posterior

Estoy tratando de hacer una redirección en una solicitud de publicación, pero no funciona para mí. Aquí está el código express.js que debería hacerlo:

 app.set('view engine','ejs'); app.use("/",express.static('public')); app.post("/sendMovieData", async(req,res)=>{ console.log(req.body) res.render("../view/movie-selected") })

Y también aquí está la solicitud de recuperación.

 let requestBody = { "movieName": movie.getAttribute("data-movieName"), "image": e.target.src, "city": JSON.parse(localStorage.getItem("city_country")).city, "country": JSON.parse(localStorage.getItem("city_country")).country } fetch('/sendMovieData', { method: "POST", headers: { 'Content-Type': 'application/json;charset=utf-8' }, body: JSON.stringify(requestBody) });
about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!