Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33d2cda

Browse files
danidee10felixxm
authored andcommitted
[3.0.x] Doc'd HttpResponse.set_cookie()'s secure argument.
Backport of 14e690a from master
1 parent 3ab7de0 commit 33d2cda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/ref/request-response.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,8 @@ Methods
821821
``domain="example.com"`` will set a cookie that is readable by the
822822
domains www.example.com, blog.example.com, etc. Otherwise, a cookie will
823823
only be readable by the domain that set it.
824+
* Use ``secure=True`` if you want the cookie to be only sent to the server
825+
when a request is made with the ``https`` scheme.
824826
* Use ``httponly=True`` if you want to prevent client-side
825827
JavaScript from having access to the cookie.
826828

0 commit comments

Comments
 (0)