-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
에러
20.04.08 19:19 작성 조회수 151
1
xhr.js:178 GET http://localhost:3000/api/hello 404 (Not Found)
Uncaught (in promise) Error: Request failed with status code 404
at createError (createError.js:16)
at settle (settle.js:17)
at XMLHttpRequest.handleLoad (xhr.js:61)
라고 브라우저 콘솔에 뜨는데 이유가 뭘까요?
답변을 작성해보세요.
3
2
0
김서연
2022.01.20
app.use('api/favorite',require('./routes/favorite')); //before
app.use('api/favorite',require('./routes/favorite')); //after
index.js 경로 적을때 맨 앞에 /를 붙이지 않아서 오류났었습니다.. 참고해주세요!
0
답변 4