Skip to content

Commit

Permalink
[3.0.x] Doc'd HttpResponse.set_cookie()'s secure argument.
Browse files Browse the repository at this point in the history
Backport of 14e690a from master
  • Loading branch information
danidee10 authored and felixxm committed Dec 13, 2019
1 parent 3ab7de0 commit 33d2cda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/ref/request-response.txt
Expand Up @@ -821,6 +821,8 @@ Methods
``domain="example.com"`` will set a cookie that is readable by the
domains www.example.com, blog.example.com, etc. Otherwise, a cookie will
only be readable by the domain that set it.
* Use ``secure=True`` if you want the cookie to be only sent to the server
when a request is made with the ``https`` scheme.
* Use ``httponly=True`` if you want to prevent client-side
JavaScript from having access to the cookie.

Expand Down

0 comments on commit 33d2cda

Please sign in to comment.