Skip to content

fix(security): isolate HTML preview origin - #830

Merged
yaojin3616 merged 1 commit into
mainfrom
agent/debugger/7ff1dc06
Aug 7, 2026
Merged

fix(security): isolate HTML preview origin#830
yaojin3616 merged 1 commit into
mainfrom
agent/debugger/7ff1dc06

Conversation

@yaojin3616

@yaojin3616 yaojin3616 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • remove allow-same-origin from agent-generated HTML preview iframe
  • retain script support while forcing the preview into an opaque origin
  • add a regression contract preventing the unsafe sandbox combination

Verification

  • npm test -- --test-name-pattern="HTML preview"
  • npm run build

@yaojin3616
yaojin3616 merged commit de075c5 into main Aug 7, 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