【发布时间】:2021-02-13 16:21:33
【问题描述】:
我创建了一个程序,首先我使用 res.status(200).send("some html code") 然后重定向
这里是例子
app.get('/callback',async(req,res)=>{
res.status(200).send("html code")
res.redirect('/path/url')
})
错误
Cannot set headers after they are sent to the client
【问题讨论】:
标签: javascript node.js api server backend