← Back to release summary

Cross-Origin Storage

Category
Offline / Storage
Type
New or changed feature
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: https://github.com/web-platform-tests/wpt/pull/61811

Summary

Cross-Origin Storage (COS), is a content-addressable browser cache that shares files across origins by hash, with k-anonymity-based availability gating to prevent cross-site tracking. It provides a secure mechanism for web applications to store and retrieve large files across different origins. Utilizing cryptographic hashes to identify and verify files, this feature allows developers to share common assets—such as AI models, WebAssembly modules, and popular JavaScript libraries—across multiple domains without redundant downloads. The hash is the key for the resource and sharing doesn't depend on fetching the resource from a shared location. This significantly reduces network costs, startup latency, and client-side storage overhead while maintaining strict user privacy and security boundaries.

Motivation

Without a standardized way to share stored assets across different domains, web applications that rely on large files are forced to download and store them redundantly. For example, when multiple sites utilize the exact same multi-gigabyte AI model or large WebAssembly module, users must wait for the same massive files to download repeatedly, consuming vast amounts of network bandwidth and valuable client-side disk space. Traditional HTTP caching cannot solve this because browsers partition caches by the top-level origin to prevent cross-site tracking and side-channel attacks. The Cross-Origin Storage API resolves this conflict by establishing a secure, opt-in mechanism to query and share verified resources across origins based solely on their cryptographic hashes, which eliminates wasteful duplicate downloads while fully preserving modern privacy boundaries.

Standards & signals

Ecosystem

Samples: https://chromewebstore.google.com/detail/cross-origin-storage/denpnpcgjgikjpoglpjefakmdcbmlgih https://apps.apple.com/app/cross-origin-storage/id6788319695 https://addons.mozilla.org/en-US/firefox/addon/cross-origin-storage https://github.com/tomayac/awesome-cross-origin-storage

Explainers: https://github.com/WICG/cross-origin-storage/blob/main/README.md

View on chromestatus.com