diff --git a/frontend/static/js/viewer/core/document-loader.js b/frontend/static/js/viewer/core/document-loader.js index c3f32d1..fa6289d 100644 --- a/frontend/static/js/viewer/core/document-loader.js +++ b/frontend/static/js/viewer/core/document-loader.js @@ -57,10 +57,10 @@ class DocumentLoader { // HTML 경로가 있는 경우에만 HTML 로드 if (docData.html_path) { - // HTML 파일 경로 구성 (백엔드 서버를 통해 접근) + // HTML 파일 경로 구성 (nginx 프록시를 통해 접근) const htmlPath = docData.html_path; const fileName = htmlPath.split('/').pop(); - const response = await fetch(`http://localhost:24102/uploads/documents/${fileName}`); + const response = await fetch(`${window.location.origin}/uploads/documents/${fileName}`); if (!response.ok) { throw new Error('문서 파일을 불러올 수 없습니다');