mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-25 06:27: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():
|
def cookietest1():
|
||||||
js = "window._3rd_party_test_step1_loaded();"
|
js = "window._3rd_party_test_step1_loaded();"
|
||||||
response = make_response(js, 200, {'Content-Type': 'application/javascript'})
|
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
|
return response
|
||||||
|
|
||||||
@embed.route("/cookietest2")
|
@embed.route("/cookietest2")
|
||||||
@ -130,5 +130,5 @@ def cookietest2():
|
|||||||
js = js + "false"
|
js = js + "false"
|
||||||
js = js + ");"
|
js = js + ");"
|
||||||
response = make_response(js, 200, {'Content-Type': 'application/javascript'})
|
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
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user