My api in NodeJS not work deploy with req.header.accept
, is this a bug in Replit deployments? In workpage it is correct.
Welcome to the forums!
Is your issue that you are missing headers? You can set headers using res.set("header", "value")
or res.set({ header: "value", header2: "value2" })
.
Could you please elaborate on your issues and also provide a link to the Repl where you are experiencing these issues (preferably not just a link to the deployment) or create another Repl demonstrating this issue.
2 Likes