mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-24 14:07:03 +01:00
Add samesite none flag to cookietest
This commit is contained in:
parent
d43d015527
commit
d5e034a880
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user