HttpOnly cookies
Prevents browser scripts from reading a cookie through ordinary cookie APIs.
Support in current browsers
Checked against the current browser versions recorded in MDN browser data 8.1.5.
| Browser | Minimum | Outcome | Reason |
|---|---|---|---|
| Chrome | 155 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Edge | 154 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Firefox | 157 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Safari | 27 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Chrome for Android | 155 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Firefox for Android | 157 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Safari on iOS | 27 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Android WebView | 155 | Works | Every required mapped BCD feature is available without a recorded qualification. |
| Samsung Internet | 30.0 | Works | Every required mapped BCD feature is available without a recorded qualification. |
How support changed
Each segment groups recorded releases with the same result. Gaps between recorded versions are not filled in. This is support at each release, rather than the planner’s check of every release above a minimum.
Chrome
http.headers.Set-Cookie.HttpOnly- 1 – 155154 recorded releasesWorks
Edge
http.headers.Set-Cookie.HttpOnly- 12 – 15482 recorded releasesWorks
Firefox
http.headers.Set-Cookie.HttpOnly- 1 – 23 recorded releasesNot supported
- 3 – 157157 recorded releasesWorks
Safari
http.headers.Set-Cookie.HttpOnly- 1 – 48 recorded releasesNot supported
- 5 – 2753 recorded releasesWorks
Chrome for Android
http.headers.Set-Cookie.HttpOnly- 18 – 155131 recorded releasesWorks
Firefox for Android
http.headers.Set-Cookie.HttpOnly- 4 – 157141 recorded releasesWorks
Safari on iOS
http.headers.Set-Cookie.HttpOnly- 1 – 3.24 recorded releasesNot supported
- 4 – 2754 recorded releasesWorks
Android WebView
http.headers.Set-Cookie.HttpOnly- 1 – 46 recorded releasesNot supported
- 4.4 – 155120 recorded releasesWorks
Samsung Internet
http.headers.Set-Cookie.HttpOnly- 1.0 – 30.052 recorded releasesWorks
BCD 8.1.5 · catalogue 2.3.0. Source corrections can change this trace without a new browser release.
What this feature can and cannot do
Helps protect against
- Session-cookie theft through script access
Does not guarantee
- Authenticated actions performed by injected script
- Network theft
- Server compromise
What you need before using it
- Cookies that do not require client-side script access
Fallback to keep in place
Minimise credential lifetime and prevent script injection regardless of cookie visibility.