diff --git a/src/werkzeug/http.py b/src/werkzeug/http.py index 79425beb1..72dc3f3eb 100644 --- a/src/werkzeug/http.py +++ b/src/werkzeug/http.py @@ -1371,7 +1371,7 @@ def dump_cookie( :param path: limits the cookie to a given path, per default it will span the whole domain. :param domain: Use this if you want to set a cross-domain cookie. For - example, ``domain=".example.com"`` will set a cookie + example, ``domain="example.com"`` will set a cookie that is readable by the domain ``www.example.com``, ``foo.example.com`` etc. Otherwise, a cookie will only be readable by the domain that set it. diff --git a/src/werkzeug/sansio/response.py b/src/werkzeug/sansio/response.py index d71839f66..e5c1df743 100644 --- a/src/werkzeug/sansio/response.py +++ b/src/werkzeug/sansio/response.py @@ -245,7 +245,7 @@ def set_cookie( :param path: limits the cookie to a given path, per default it will span the whole domain. :param domain: if you want to set a cross-domain cookie. For example, - ``domain=".example.com"`` will set a cookie that is + ``domain="example.com"`` will set a cookie that is readable by the domain ``www.example.com``, ``foo.example.com`` etc. Otherwise, a cookie will only be readable by the domain that set it.