From 7d523f955e81af17cf106b6f13c53086e3157430 Mon Sep 17 00:00:00 2001 From: hyungi Date: Thu, 11 Sep 2025 07:26:24 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=ED=81=B4=EB=9D=BC=EC=9A=B0=EB=93=9C?= =?UTF-8?q?=ED=94=8C=EB=A0=88=EC=96=B4=20=ED=84=B0=EB=84=90=20HTTPS=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EC=97=90=EC=84=9C=20Mixed=20Content=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - document-loader.js에서 하드코딩된 localhost:24102 URL 제거 - window.location.origin을 사용하여 동적으로 현재 도메인 사용 - HTTPS 환경에서 HTTP 리소스 요청으로 인한 브라우저 차단 문제 해결 - 클라우드플레어 터널링 환경에서 문서 로드 정상화 --- frontend/static/js/viewer/core/document-loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('문서 파일을 불러올 수 없습니다');