Storage accessBaseline · Widely available
The document.requestStorageAccess() method allows content in iframes to request storing and reading cookies and other site data, while the document.hasStorageAccess() method checks if such access is granted.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Dec 5, 2023. Widely available since Jun 5, 2026.
Browser support
DesktopChrome
1–118Not supported
119+Supportedsince Oct 31, 2023
Current: 155Edge
12–84Not supported
85+Supportedsince Aug 27, 2020
Current: 154Firefox
1–64Not supported
65+Supportedsince Jan 29, 2019
Current: 157Safari
1–11Not supported
11.1+Supportedsince Apr 12, 2018
Current: 27MobileChrome Android
18–119Not supported
120+Supportedsince Dec 5, 2023
Current: 155Firefox Android
4–64Not supported
65+Supportedsince Jan 29, 2019
Current: 157Safari iOS
1–11Not supported
11.3+Supportedsince Mar 29, 2018
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: hasStorageAccess.
Feature detection
JS · check before using
if ("allow" in document.createElement("iframe")) {
// the allow attribute/property of <iframe> is supported
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Document.hasStorageAccess | 119 | 85 | 65 | 11.1 | 120 | 65 | 11.3 |
| Document.requestStorageAccess | 119 | 85 | 65 | 11.1 | 120 | 65 | 11.3 |
| Permissions.permission_storage-access | 119 | 85 | 117 | 26.2 | 120 | 117 | 26.2 |
| iframe.allow.storage-access | 113 | 113 | ✕ | ✕ | 113 | ✕ | ✕ |
| http.headers.Permissions-Policy.storage-access | 113 | 113 | ✕ | ✕ | 113 | ✕ | ✕ |