blob: ba109a393247bb365a650b8801e04d05ac0d912f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/cookie-utilities.js"></script>
<body>
<script>
async function runTest()
{
await resetCookies();
await setCookie("strict", "20", {"SameSite": "Strict", "Max-Age": 100, "path": "/"});
await setCookie("implicit-strict", "20", {"SameSite": null, "Max-Age": 100, "path": "/"});
await setCookie("strict-because-invalid-SameSite-value", "20", {"SameSite": "invalid", "Max-Age": 100, "path": "/"});
await setCookie("lax", "20", {"SameSite": "Lax", "Max-Age": 100, "path": "/"});
window.location.href = "http://127.0.0.1:8000/resources/redirect.php?url=http://127.0.0.1:8000/cookies/same-site/resources/fetch-after-top-level-same-origin-redirect.php";
}
runTest();
</script>
</body>
</html>