mirror of
https://github.com/curl/curl.git
synced 2026-07-24 18:47:18 +03:00
cookies: leave secure cookies alone
Only allow secure origins to be able to write cookies with the 'secure' flag set. This reduces the risk of non-secure origins to influence the state of secure origins. This implements IETF Internet-Draft draft-ietf-httpbis-cookie-alone-01 which updates RFC6265. Closes #2956 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
fdc5563b6e
commit
7a09b52c98
11 changed files with 148 additions and 43 deletions
|
|
@ -18,7 +18,9 @@
|
|||
original [Netscape spec from 1994](https://curl.haxx.se/rfc/cookie_spec.html).
|
||||
|
||||
In 2011, [RFC6265](https://www.ietf.org/rfc/rfc6265.txt) was finally
|
||||
published and details how cookies work within HTTP.
|
||||
published and details how cookies work within HTTP. In 2017, an update was
|
||||
[drafted](https://tools.ietf.org/html/draft-ietf-httpbis-cookie-alone-01)
|
||||
to deprecate modification of 'secure' cookies from non-secure origins.
|
||||
|
||||
## Cookies saved to disk
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue