BE/Network
[ HTTP ] 413 Content Too Large
HEON.D
2024. 3. 28. 13:28
https://developer.mozilla.org/ko/docs/Web/HTTP/Status/413
413 Content Too Large - HTTP | MDN
HTTP 413 Content Too Large 응답 상태 코드는 요청 엔터티가 서버에 의해 정의된 제한보다 크다는 것을 나타냅니다. 서버는 연결을 닫거나 Retry-After 헤더 필드를 반환할 수 있습니다.
developer.mozilla.org
https://jw910911.tistory.com/125
express: 413 payload too large 에러 해결하기
얼마 전 회사에서 express로 백엔드 개발을 하다가 프론트엔드의 요청에 대해서 413 에러가 발생하였습니다. 이에 대한 해결 방법을 간단하게 공유해보도록 하겠습니다. 문제점 먼저 알아볼 내용
jw910911.tistory.com
app.use(express.json({limit: '100mb'}));
app.use(express.urlencoded({limit: '100mb', extended: false}));
files:
"/etc/nginx/conf.d/proxy.conf" :
mode: "000755"
owner: root
group: root
content: |
client_max_body_size 500M
client_max_body_size 500M;