Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit 389f873

Browse files
authored
Merge pull request #384 from microsoft/alert-autofix-7
Potential fix for code scanning alert no. 7: Failure to use secure cookies
2 parents dbb9228 + cc0c68d commit 389f873

File tree

1 file changed

+1
-1
lines changed
  • archive/Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/vote

1 file changed

+1
-1
lines changed

archive/Events and Hacks/Tech Talks/ContainerDemo/example-voting-app/vote/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def hello():
3838
hostname=hostname,
3939
vote=vote,
4040
))
41-
resp.set_cookie('voter_id', voter_id)
41+
resp.set_cookie('voter_id', voter_id, secure=True, httponly=True, samesite='Lax')
4242
return resp
4343

4444

0 commit comments

Comments
 (0)