Skip to content

feat(studio-channel): trust deco Editor's origin by default - #852

Merged
tlgimenes merged 1 commit into
mainfrom
feat/editor-origin
Nov 28, 2026
Merged

tlgimenes merged 1 commit into
mainfrom
feat/editor-origin

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

deco Editor (editor.decocms.com) frames a site's draft like Studio does, but the page's Studio channel only answers exact origins, so the editor's section wireframe and HTML swap never load there.

This adds https://editor.decocms.com to DEFAULT_STUDIO_ORIGINS in @decocms/blocks/protocol, @decocms/tanstack and @decocms/nextjs (the channel's trusted list and the CSP's script-src/frame-ancestors). A site that sets studioOrigins or DECO_STUDIO_ORIGIN is unchanged. The page still imports a module only from a URL on the origin of the message naming it, so the editor serves its own modules.

Tests: the origin lists in the studio, csp, worker, DecoDocument and StudioBridge tests. READMEs and skills updated. The two failing proxy.test.ts tests and the compat-v7 lint warning fail on main too.

🤖 Generated with Claude Code


Summary by cubic

Trusts deco Editor's origin (https://editor.decocms.com) by default so its section wireframe and HTML swap load when it frames a site's draft. Adds the origin to DEFAULT_STUDIO_ORIGINS in @decocms/blocks/protocol, @decocms/tanstack, and @decocms/nextjs, which feeds the channel's trusted list and the CSP's script-src/frame-ancestors. Sites that set studioOrigins or DECO_STUDIO_ORIGIN are unchanged, and the page still imports modules only from the origin of the message naming them.

Written for commit 5ee3578. Summary will update on new commits.

View guided diff Turn on auto-fix

… by default

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tlgimenes
tlgimenes requested a review from a team November 28, 2026 23:42
@tlgimenes
tlgimenes merged commit 8e4c4ff into main Nov 28, 2026
5 checks passed
@tlgimenes
tlgimenes deleted the feat/editor-origin branch November 28, 2026 23:49
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 8.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant