cookies.getAll()
Read More at MDN DocsSafe to Use
cookies.getAll()
is not safe to use.
It’s supported by 54% of global browsers.
Browsers
ChromeDec 11, 2008v1.0.0
26%╱100%
100% of Chrome users are running a supported version.
SafariSep 16, 2020v14.0.05%╱93%
There are no users of Safari running a supported version.
EdgeJan 15, 2020v79.0.05%╱100%
There are no users of Edge running a supported version.
FirefoxMar 8, 2016v45.0.03%╱100%
100% of Firefox users are running a supported version.
Version Breakdown
Support
Adoption
Chrome
Dec 11, 2008 v1.0.0
26%╱100%
100% of Chrome users are running a supported version.
Dec 11, 2008 – Latest
v1.0.0+
26%╱100%
Full Support
Edge
Jan 15, 2020 v79.0.0
5%╱100%
There are no users of Edge running a supported version.
Jan 15, 2020 – Latest
v79.0.0+
5%╱100%
Full Support
If no URL is provided, cookies are retrieved only for URLs in currently opened tabs. In Chrome, this gets all cookies on a user's machine.
Firefox
Mar 8, 2016 v45.0.0
3%╱100%
100% of Firefox users are running a supported version.
Mar 8, 2016 – Latest
v45.0.0+
3%╱100%
Full Support
Before version 52, the 'tabIds' list was empty and only cookies from the default cookie store were returned. From version 52 onwards, this has been fixed and the result includes cookies from private browsing mode and container tabs.
Firefox for Android
Aug 2, 2016 v48.0.0
Firefox for Android supports this feature.
Aug 2, 2016 – Latest
v48.0.0+
Full Support
Opera
Unknown v1.0.0
1%╱100%
100% of Opera users are running a supported version.
Unknown
v1.0.0+
1%╱100%
Full Support
Safari
Sep 16, 2020 v14.0.0
5%╱93%
There are no users of Safari running a supported version.
Sep 16, 2020 – Latest
v14.0.0+
5%╱93%
Full Support
Only the cookies in the default cookie store are retrieved.
HTTPOnly cookies are not retrieved.
Safari on iOS
Sep 20, 2021 v15.0.0
15%╱93%
There are no users of Safari on iOS running a supported version.
Sep 20, 2021 – Latest
v15.0.0+
15%╱93%
Full Support
Only the cookies in the default cookie store are retrieved.
HTTPOnly cookies are not retrieved.