]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
HTTP-COOKIES.md: mention that http://localhost is a secure context
authorDaniel Stenberg <daniel@haxx.se>
Thu, 17 Nov 2022 18:08:56 +0000 (19:08 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 17 Nov 2022 22:16:31 +0000 (23:16 +0100)
Reported-by: Trail of Bits
Closes #9938

docs/HTTP-COOKIES.md

index 939e9fab2ff96987f1e9da363ff435733000ce5c..bbcb175a798b2bb2cc1d69f2dcf1c68e5bc61ea2 100644 (file)
   RFC6265. Cookie prefixes and secure cookie modification protection has been
   implemented by curl.
 
+  curl considers `http://localhost` to be a *secure context*, meaning that it
+  will allow and use cookies marked with the `secure` keyword even when done
+  over plain HTTP for this host. curl does this to match how popular browsers
+  work with secure cookies.
+
 ## Cookies saved to disk
 
   Netscape once created a file format for storing cookies on disk so that they