Skip to content

Document browser grants for service-worker responses - #425

Draft
tnkuehne wants to merge 8 commits into
mainfrom
docs-hosted-worker-src-self
Draft

tnkuehne wants to merge 8 commits into
mainfrom
docs-hosted-worker-src-self

Conversation

@tnkuehne

Copy link
Copy Markdown
Contributor

Updates the network guide and starter README for #424. Keep in draft until the runtime change ships.

@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 failed
View logs
widefleet-docs ed0f228 Nov 26 2026, 04:10 PM

tnkuehne added a commit that referenced this pull request Nov 26, 2026
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.



<!-- greptile_comment -->

<!-- greptile_summary -->

<h2><ruby><rp>Confidence Score: 5/5 · The PR appears safe to merge with
the companion documentation update in PR #425.</rp></ruby><a
href="https://app.greptile.com/api/retrigger?id=120878821&amp;sig=fbbc19deea2ab05dd6b236ec8619fba9dab3a1a4011d1f05478e2cddbe65222b"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/RetriggerDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"><img
alt="Retrigger"
src="https://greptile-static-assets.s3.amazonaws.com/badges/Retrigger.svg?v=2"
align="right"></picture></a><a
href="https://app.greptile.com/-/switch-tenant?tenant=mendra&amp;next=%2Fwidefleet%2Fwidefleet%2Fpull%2F424&amp;utm_source=greptile_review&amp;utm_medium=github&amp;utm_campaign=view_in_greptile"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptileDark.svg?v=2"><source
media="(prefers-color-scheme: light)"
srcset="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"><img
alt="View in Greptile"
src="https://greptile-static-assets.s3.amazonaws.com/badges/ViewInGreptile.svg?v=2"
align="right"></picture></a>Confidence Score: 5/5 <sup><img alt="Tier:
plus" title="Review tier: plus"
src="https://greptile-static-assets.s3.amazonaws.com/badges/effort-plus.svg?v=3"
height="12"></sup></h2>

<!-- greptile-impact-verdict --> The PR appears safe to merge with the
companion documentation update in PR #425.

<details open><summary><h3>Summary</h3></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.
</details>

<details open><summary><h3>Diagram</h3></summary>

```mermaid
%%{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"]
```
</details>

<!-- greptile_confidence_score:5 -->

<sub>Reviews (3) · Last reviewed commit: ["Show save errors in a toast
and keep
unc..."](7f2be6f)
· [Reviewed by
Greptile](https://www.greptile.com/?utm_source=greptile_review&utm_medium=github&utm_campaign=review_public&utm_content=widefleet/widefleet)</sub>

<!-- /greptile_comment -->
Base automatically changed from hosted-worker-src-self to main November 26, 2026 16:37

This branch has not been deployed

No deployments
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