Add samesite none flag to cookietest

This commit is contained in:
Jeremy Zhang 2020-03-19 12:58:57 -07:00
parent d43d015527
commit d5e034a880

View File

@ -118,7 +118,7 @@ def noscript():
def cookietest1():
js = "window._3rd_party_test_step1_loaded();"
response = make_response(js, 200, {'Content-Type': 'application/javascript'})
response.set_cookie('third_party_c_t', "works", max_age=30)
response.set_cookie('third_party_c_t', "works", max_age=30, samesite='None')
return response
@embed.route("/cookietest2")
@ -130,5 +130,5 @@ def cookietest2():
js = js + "false"
js = js + ");"
response = make_response(js, 200, {'Content-Type': 'application/javascript'})
response.set_cookie('third_party_c_t', "", expires=0)
response.set_cookie('third_party_c_t', "", expires=0, samesite='None')
return response