blob: 90eb75d95e0f4adc074fce3700514e7b6c1f3fba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Storage inspector cookie samesite test</title>
</head>
<body>
<script type="application/javascript">
"use strict";
const expiresIn24Hours = new Date(Date.now() + 60 * 60 * 24 * 1000).toUTCString();
document.cookie = "test1=value1;expires=" + expiresIn24Hours + ";";
document.cookie = "test2=value2;expires=" + expiresIn24Hours + ";SameSite=lax";
document.cookie = "test3=value3;expires=" + expiresIn24Hours + ";SameSite=strict";
</script>
</body>
</html>
|