Skip to content

feat(viewer): env-configurable frame-ancestors on default profile (enables naruon embed)#103

Open
seonghobae wants to merge 2 commits into
mainfrom
feat/configurable-frame-ancestors
Open

feat(viewer): env-configurable frame-ancestors on default profile (enables naruon embed)#103
seonghobae wants to merge 2 commits into
mainfrom
feat/configurable-frame-ancestors

Conversation

@seonghobae

Copy link
Copy Markdown
Collaborator

naruon will embed Clearfolio's /viewer/{docId} in a sandboxed iframe. ViewerSecurityHeadersWebFilter already reads viewer.security.frame-ancestors and buyer-demo exposes ${CLEARFOLIO_FRAME_ANCESTORS:self}, but the default application.yml hard-coded self. This wires the same env indirection into the default profile so naruon (and other hosts) can allow cross-origin embedding via CLEARFOLIO_FRAME_ANCESTORS without a profile switch. Default stays self (same-origin) when unset — no behavior change. mvn -DskipTests compile OK.

🤖 Generated with Claude Code

The buyer-demo profile exposes CLEARFOLIO_FRAME_ANCESTORS, but the default
application.yml hard-coded 'self', so a production deployment on the default
profile could not allow the viewer to be embedded cross-origin. Mirror the
${CLEARFOLIO_FRAME_ANCESTORS:self} indirection so naruon can embed the /viewer
surface via config. Default stays 'self' — no behavior change when unset.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017RkKdtHRLG4wSLh6PVsp8J
@seonghobae seonghobae enabled auto-merge (squash) July 7, 2026 01:27
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjGVapDZ3k7V7zKYk16P4C
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