From cc0c68d7ad5036a4c42b259f49ae69f135fb5c12 Mon Sep 17 00:00:00 2001 From: Anthony Bartolo Date: Wed, 20 Aug 2025 15:10:54 -0400 Subject: [PATCH] Potential fix for code scanning alert no. 7: Failure to use secure cookies Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../Tech Talks/ContainerDemo/example-voting-app/vote/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/vote/app.py b/archive/Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/vote/app.py index 80f5fd2d..03ef1aea 100644 --- a/archive/Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/vote/app.py +++ b/archive/Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/vote/app.py @@ -38,7 +38,7 @@ def hello(): hostname=hostname, vote=vote, )) - resp.set_cookie('voter_id', voter_id) + resp.set_cookie('voter_id', voter_id, secure=True, httponly=True, samesite='Lax') return resp