coderef

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: 155
Edge
12–84Not supported
85+Supportedsince Aug 27, 2020
Current: 154
Firefox
1–64Not supported
65+Supportedsince Jan 29, 2019
Current: 157
Safari
1–11Not supported
11.1+Supportedsince Apr 12, 2018
Current: 27
MobileChrome Android
18–119Not supported
120+Supportedsince Dec 5, 2023
Current: 155
Firefox Android
4–64Not supported
65+Supportedsince Jan 29, 2019
Current: 157
Safari iOS
1–11Not supported
11.3+Supportedsince Mar 29, 2018
Current: 27

How 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
}

Sub-features

Support for each part of the feature (5). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
Document.hasStorageAccess119856511.11206511.3
Document.requestStorageAccess119856511.11206511.3
Permissions.permission_storage-access1198511726.212011726.2
iframe.allow.storage-access113113✕✕113✕✕
http.headers.Permissions-Policy.storage-access113113✕✕113✕✕