Skip to content

Commit 8c67604

Browse files
Use Safe Parameters in flask Response set_cookie Call
1 parent b22f441 commit 8c67604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core_codemods/delete_me.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
response = flask.make_response()
44
var = "hello"
5-
response.set_cookie("name", "value")
5+
response.set_cookie("name", "value", secure=True, httponly=True, samesite='Lax')
66

77
response2 = flask.Response()
88
var = "hello"
9-
response2.set_cookie("name", "value")
9+
response2.set_cookie("name", "value", secure=True, httponly=True, samesite='Lax')

0 commit comments

Comments
 (0)