diff --git a/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/d_set_cookies.py b/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/d_set_cookies.py
index 2d4b3d93..e0a1209c 100644
--- a/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/d_set_cookies.py
+++ b/python3/16_Web_Services/f_web_application/d_using_flask/a_simple_apps/d_set_cookies.py
@@ -7,7 +7,7 @@
def index():
# return '
Hello World!
'
response = make_response("This document carries a cookie!
")
- response.set_cookie("answer", "42")
+ response.set_cookie("answer", "42", secure=True, httponly=True, samesite='Lax')
return response
diff --git a/python3/16_Web_Services/f_web_application/d_using_flask/h_blueprints/f_blueprints.py b/python3/16_Web_Services/f_web_application/d_using_flask/h_blueprints/f_blueprints.py
index adaa6b5e..05fd9b7d 100644
--- a/python3/16_Web_Services/f_web_application/d_using_flask/h_blueprints/f_blueprints.py
+++ b/python3/16_Web_Services/f_web_application/d_using_flask/h_blueprints/f_blueprints.py
@@ -40,7 +40,7 @@ def logout():
def index():
# return 'Hello World!
'
response = make_response("This document carries a cookie!
")
- response.set_cookie("answer", "42")
+ response.set_cookie("answer", "42", secure=True, httponly=True, samesite='Lax')
return response