cookies.set()
The set()
method of the cookies
API sets a cookie containing the specified cookie data. This method is equivalent to issuing an HTTP Set-Cookie
header during a request to a given URL.
Safe to Use
cookies.set()
is not safe to use.
It’s supported by 53% 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.
EdgeUnknownv1.0.05%╱100%
100% of Edge users are running a supported version.
FirefoxOct 23, 2018v63.0.02%╱98%
There are no users of Firefox 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
Unknown v1.0.0
5%╱100%
100% of Edge users are running a supported version.
Unknown
v1.0.0+
5%╱100%
Full Support
Firefox
Oct 23, 2018 v63.0.0
2%╱98%
There are no users of Firefox running a supported version.
Oct 23, 2018 – Latest
v63.0.0+
2%╱98%
Full Support
Firefox for Android
Oct 23, 2018 v63.0.0
Firefox for Android supports this feature.
Oct 23, 2018 – Latest
v63.0.0+
Full Support
Opera
Unsupported
Opera does not support this feature.
No 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 supports explicit.
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 supports explicit.