Skip to content

[#1] Setting: H2 Console 접근 불가 문제 해결 - #8

Merged
jae-2024 merged 1 commit into
mainfrom
Setting/#1/init
Jan 22, 2026
Merged

jae-2024 merged 1 commit into
mainfrom
Setting/#1/init

Conversation

@jae-2024

@jae-2024 jae-2024 commented Jan 22, 2026 •

Copy link
Copy Markdown
Contributor

❌ 문제

  • http://localhost:8080/h2-console 접속 시 “localhost에서 연결을 거부했습니다” 화면 표시됨
  • H2 콘솔 페이지가 정상적으로 렌더링되지 않음

🔍 원인

  • H2 Console은 iframe 기반 UI Sring Security 기본 설정에 의해 X-Frame-Options: DENY 헤더가 적용되어 iframe 차단
    (iframe 이란? 웹 페이지 안에 또 다른 웹페이지를 삽입하는 것)

✅ 해결

  • Spring Security에서 H2 Console 경로 허용
  • iframe 차단 해제

@jae-2024 jae-2024 self-assigned this Jan 22, 2026
@jae-2024 jae-2024 added the 🐞BugFix Something isn't working label Jan 22, 2026
@jae-2024
jae-2024 merged commit 37f9e65 into main Jan 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞BugFix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant