스토리 뷰 페이지 헤더 z-index 충돌 문제 해결

- 메인 컨테이너 padding-top을 pt-4에서 pt-20으로 증가
- 드롭다운 z-index를 z-[60]으로 설정하여 헤더보다 높은 우선순위 부여
- 스토리 선택 드롭다운이 정상적으로 작동하도록 수정
- 디버깅용 코드 정리
This commit is contained in:
Hyungi Ahn
2025-09-04 10:22:43 +09:00
parent 3ba804276c
commit 43e7466195
11 changed files with 709 additions and 35 deletions

View File

@@ -11,6 +11,36 @@ server {
access_log off;
}
# PDF 파일 요청 (iframe 허용)
location ~ ^/api/documents/[^/]+/pdf$ {
proxy_pass http://backend:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# 타임아웃 설정
proxy_connect_timeout 30s;
proxy_send_timeout 30s;
proxy_read_timeout 30s;
# 버퍼링 설정
proxy_buffering on;
proxy_buffer_size 4k;
proxy_buffers 8 4k;
# 리다이렉트 방지
proxy_redirect off;
# PDF iframe 허용 및 인라인 표시 설정
add_header X-Frame-Options "SAMEORIGIN" always;
# PDF 파일이 다운로드되지 않고 브라우저에서 표시되도록 설정
location ~ \.pdf$ {
add_header Content-Disposition "inline";
}
}
# API 요청을 백엔드로 프록시
location /api/ {
proxy_pass http://backend:8000;

View File

@@ -45,8 +45,7 @@ http {
application/atom+xml
image/svg+xml;
# 보안 헤더
add_header X-Frame-Options "SAMEORIGIN" always;
# 보안 헤더 (PDF 파일은 제외)
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "no-referrer-when-downgrade" always;