Skip to content

Improve PWA bundle rendering: Service Worker origin-isolation per bundle #3

Description

@omscse

Currently, all bundles share the same origin in the browser PWA viewer. This means localStorage and IndexedDB data is not properly scoped per bundle — bundles can theoretically read each other's storage.

The fix is to serve each bundle from a synthetic origin (e.g. bundle-<id>.portableweb.org or using a hash-based path) so that the browser enforces origin-level storage isolation.

Approach options:

  • Subdomain per bundle ID (requires wildcard DNS + TLS)
  • Service Worker intercept with opaque origin headers
  • <iframe sandbox> with a unique src per bundle

This is a near-term spec compliance requirement before v1.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions