Related website setsLimited availability
Related website sets declares relationships between sites so the browser allows cookie and storage access between them through methods such as document.requestStorageAccessFor().
Not yet supported in all major browsers — check the table and provide a fallback.
Discouraged: Following the announcement that Chrome will maintain its current approach to third-party cookies, Chrome decided to withdraw certain Privacy Sandbox features including the related website sets.
Browser support
How to use
Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: requestStorageAccessFor.
Feature detection
if ("Document" in globalThis && "requestStorageAccessFor" in Document.prototype) {
// Document.requestStorageAccessFor is available
}Documentation (MDN)
Sub-features
Support for each part of the feature (2). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Document.requestStorageAccessFor | 119 | 119 | ✕ | ✕ | 119 | ✕ | ✕ |
| Permissions.permission_top-level-storage-access | 113 | 113 | ✕ | ✕ | 120 | ✕ | ✕ |