Error: Can't set headers after they are sent to the client

2023. 2. 6. 16:48웹개발/에러

1. 서버가 하나 초과하는 값을 보내려고 할때

각 all/use마다 send나 redirect를 하나씩만 지정하면 된다.

2. content-type을 지정하지 않아서

아래 줄 추가하면 된다.

response.setHeader(name, value)
728x90