mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
[3.0.x] Doc'd HttpResponse.set_cookie()'s secure argument.
Backport of 14e690ae5a
from master
This commit is contained in:
parent
3ab7de0182
commit
33d2cda672
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue