Cannot set headers after they are sent to the client1 Node JS 서버 다루며 만난 에러 [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client 서버가 클라이언트에 2개 이상의 응답을 보내려고 할 때 발생하는 오류 ex. response.end( ) 를 2번 이상 보냈다던가 ... response.end( ) 를 2번 이상 보냈다던가 ... ex. 로직이 잘못된 경우니까 코드를 잘 살펴보자 !! Access to fetch at 'http://localhost:3000' from origin 'http://127.0.0.1:8000 has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No.. 2021. 9. 9. 이전 1 다음