# Truth Spine proof: MDN says a cookie with the Secure attribute is never sent over plain HTTP

**Problem:** Cookies are sent without the Secure flag. Truth Spine record I-0121: https://ursy.com/truth-spine/I-0121/

**Caption.** MDN says a cookie with the Secure attribute is never sent over unsecured HTTP, so cookies without it can leak. Truth Spine record I-0121.

**What this picture proves.** The problem is 'Cookies are sent without the Secure flag'. MDN's guide 'Using HTTP cookies' says a cookie with the Secure attribute is only sent over HTTPS, and the boxed words read "It's never sent with unsecured HTTP". So a cookie without that flag can travel over plain http, where it can be read, which backs the problem.

**What the picture shows.** At the top is a pale grey address strip. Small dark text on the left reads 'URSY.com saved copy · read 2026-12-01'. Under it a long white rounded bar holds the address https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies, with a thin red rectangle drawn round the address. Below is the saved MDN page on a plain white background, shown as a single centred text column with wide empty margins on both sides; no MDN header, logo or side menu is in view. The text is a clean dark grey sans-serif. The column starts mid-paragraph with 'catastrophic. A criminal could for example steal a session ID...'. Next comes the heading 'Block access to your cookies', larger, black and underlined as a link. A paragraph mentions the 'Secure' and 'HttpOnly' attributes, shown as small monospace words on light grey pill backgrounds. Then a small 'http' label with a grey 'Copy' button, and a monospace code line 'Set-Cookie: id=a3fWa; Expires=Thu, 21 Oct 2021 07:28:00 GMT; Secure; HttpOnly'. Two bullet points follow. In the first bullet, on the second line, a thin red rectangle surrounds exactly the words 'It's never sent with unsecured HTTP', sitting between 'the HTTPS protocol.' and '(except on localhost, although'. Blue underlined links read 'manipulator in the middle (MITM)', 'Document.cookie' (monospace) and 'XSS'. Below the bullets is a pale blue note panel with a dark blue left border and a small round 'i' icon, starting 'Note:' in bold. At the bottom edge the next heading 'Define where cookies are sent' is cut in half by the label. The label is a light blue band under a strong blue top line. On the left, a grey line 'Website problem · Security and HTTPS · official source: MDN', then the title 'Cookies are sent without the Secure flag' in large bold navy type, then 'Source and record: ursy.com/truth-spine/I-0121/' with the address in bold blue. On the right a royal blue rounded badge reads 'URSY.com', 'TRUTH SPINE' and 'FACT RECORD I-0121' in white. A thin grey rule sits above the bottom line 'Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine'.

**The red outline:** address strip, round the source address: "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies"; first bullet under 'Block access to your cookies', second line, middle: "It's never sent with unsecured HTTP"

**Printed lines, in reading order:**
- URSY.com saved copy · read 2026-12-01
- https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies
- catastrophic. A criminal could for example steal a session ID and use it to set a cookie that
- makes it look like they are logged in as someone else, taking control of their bank or e-commerce
- account in the process.
- You can secure your cookies in a variety of ways, which are reviewed in this section.
- Block access to your cookies
- You can ensure that cookies are sent securely and aren't accessed by unintended parties or
- scripts in one of two ways: with the Secure attribute and the HttpOnly attribute:
- http Copy
- Set-Cookie: id=a3fWa; Expires=Thu, 21 Oct 2021 07:28:00 GMT; Secure; HttpOnly
- A cookie with the Secure attribute is only sent to the server with an encrypted request over
- the HTTPS protocol.
- It's never sent with unsecured HTTP **(boxed in red)**
- (except on localhost, although
- this exception is not supported by Safari), which means manipulator in the middle (MITM)
- attackers can't access it easily. Insecure sites (with http: in the URL) can't set cookies
- with the Secure attribute. However, don't assume that Secure prevents all access to
- sensitive information in cookies. For example, someone with access to the client's hard disk
- (or JavaScript if the HttpOnly attribute isn't set) can read and modify the information.
- A cookie with the HttpOnly attribute can't be accessed by JavaScript, for example using
- Document.cookie; it can only be accessed when it reaches the server. Cookies that
- persist user sessions for example should have the HttpOnly attribute set — it would be
- really insecure to make them available to JavaScript. This precaution helps mitigate cross-site scripting (XSS) attacks.
- Note: Depending on the application, you may want to use an opaque identifier that the
- server looks up rather than storing sensitive information directly in cookies, or
- investigate alternative authentication/confidentiality mechanisms such as JSON Web Tokens.
- Define where cookies are sent
- Website problem · Security and HTTPS · official source: MDN
- Cookies are sent without the Secure flag
- Source and record: ursy.com/truth-spine/I-0121/
- URSY.com TRUTH SPINE FACT RECORD I-0121
- Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine. Explore them all at ursy.com/truth-spine

**Where it came from.**
- Source: MDN, "Using HTTP cookies": https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies
- Saved by URSY.com on 1 December 2026 (sha256 be883979e84dbb2fbbe370e46f0a32d66e1e46dd03918882ae718d3890096590).
- Look for public archive copies (a search, not a copy saved by URSY.com): https://web.archive.org/web/2026*/https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies

**The problem, explained, with how to fix it:** https://ursy.com/issues/cookies-not-secure/

Every fact on URSY.com is recorded with its source in the URSY.com Truth Spine: https://ursy.com/truth-spine/

URSY.com - www.ursy.com
