Skip to content

Let organization admins enable same-origin browser workers - #424

Merged
tnkuehne merged 11 commits into
mainfrom
hosted-worker-src-self
Nov 26, 2026
Merged

tnkuehne merged 11 commits into
mainfrom
hosted-worker-src-self

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Keep hosted browser workers disabled by default. Organization administrators can enable them under Settings → Security → Browser workers, through the management API, or through the CLI. Publish the setting with the installed organization configuration and apply it to both assets and app responses.

Opting in allows service-worker-generated documents to communicate outside the browser grant list. Disabling blocks new registrations on platform-served pages. Existing registrations can remain active.

Documentation: #425.

Confidence Score: 5/5 · The PR appears safe to merge with the companion documentation update in PR #425.RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

The PR appears safe to merge with the companion documentation update in PR #425.

Summary

Adds an organization-wide browser-worker setting, disabled by default.

  • App pages use same-origin browser workers when their organization enables them.
  • Organization admins can choose whether hosted apps may register same-origin browser workers.

No new actionable issues were found. Tests and visual checks were not run because the application dependencies are absent.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  A["Administrator: UI, API, or CLI"] --> B["Save organization setting"]
  B --> C["Publish installed configuration"]
  C --> D["Read app owner's configuration"]
  D --> E["Set worker-src on assets and app responses"]
  E --> F["Default: none; enabled: self"]
Loading

Reviews (3) · Last reviewed commit: "Show save errors in a toast and keep unc..." · Reviewed by Greptile

Comment thread packages/app-runtime/src/csp.ts Resolved
Comment thread packages/app-runtime/src/csp.ts Resolved
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 3ba227f Nov 26 2026, 04:26 PM

@tnkuehne tnkuehne changed the title Allow same-origin browser workers for hosted apps Let organization admins enable same-origin browser workers Nov 26, 2026
@tnkuehne
tnkuehne merged commit 7d9251b into main Nov 26, 2026
16 of 17 checks passed
@tnkuehne
tnkuehne deleted the hosted-worker-src-self branch November 26, 2026 16:37
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