Skip to content

fix: 인라인 스크립트를 모듈로 옮겨 CSP script-src 를 적용하고 이미지 버전·캐시 범위를 바로잡음 - #226

Merged
yoon6yo merged 1 commit into
mainfrom
fix/v3.3.79-csp-script-src-and-image-pins
Oct 13, 2026
Merged

yoon6yo merged 1 commit into
mainfrom
fix/v3.3.79-csp-script-src-and-image-pins

Conversation

@yoon6yo

@yoon6yo yoon6yo commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

변경 내용

  • Clarity·GA 인라인 스크립트와 글꼴 onload 를 src/pageBoot.js 로 옮기고 CSP 에 script-src 를 추가함
  • Dockerfile 을 CI 와 같은 node 24·pnpm 10 으로 맞추고 nginx 를 1.30-alpine 으로 고정함
  • 정적 파일 캐시 규칙과 확장자 location 이 /api/ 응답에 걸리지 않게 함

검증

  • eslint 오류 0(경고 58건은 기존), vite build 통과
  • nginx.conf 의 CSP 헤더를 붙인 정적 서버 + headless Chromium: 위반 0건, GA·Clarity 스크립트 200, 글꼴 적용, 인라인 스크립트 차단 확인
  • nginx -t 와 이미지 빌드는 로컬에 nginx·docker 가 없어 확인하지 못함 — CI 빌드에서 확인 필요

범위 밖

  • 토큰의 httpOnly 쿠키 이전(BE 와 함께 바꿔야 하는 인증 구조 변경)

🤖 Generated with Claude Code

- Clarity·GA 인라인 스크립트와 글꼴 onload 를 src/pageBoot.js 로 옮기고 CSP 에 script-src 를 추가함
- Dockerfile 을 CI 와 같은 node 24·pnpm 10 으로 맞추고 nginx 를 1.30-alpine 으로 고정함
- 정적 파일 캐시 규칙이 /api/ 응답에 걸리지 않게 함

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@yoon6yo
yoon6yo merged commit 60f4da6 into main Oct 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant