node写登录后端报错Cannot set headers after they are sent to the client

使用node+express搭建服务器连接mongodb写后端登录的时候,postman测试返回值为登录成功了,终端也打印出来name和pass,但为什么还报错 Cannot set headers after they are sent to the client 报错翻译:将请求头发送到客户端后无法设置请求头 原因:客户端发送一次请求的时候,服务器端给出了多次响应 解决办法:在你的每次响应后添
相关文章
相关标签/搜索