Implement Same-Site cookies
[WebKit-https.git] / LayoutTests / http / tests / cookies / same-site / fetch-in-cross-origin-iframe.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/cookie-utilities.js"></script>
5 <body>
6 <script>
7 async function runTest()
8 {
9     await resetCookies();
10     await setCookie("strict", "3", {"SameSite": "Strict", "Max-Age": 100, "path": "/"});
11     await setCookie("implicit-strict", "3", {"SameSite": null, "Max-Age": 100, "path": "/"});
12     await setCookie("strict-because-invalid-SameSite-value", "3", {"SameSite": "invalid", "Max-Age": 100, "path": "/"});
13     await setCookie("lax", "3", {"SameSite": "Lax", "Max-Age": 100, "path": "/"});
14     window.location.href = "http://127.0.0.1:8000/cookies/same-site/resources/echo-iframe-src.php?src=http://localhost:8000/cookies/same-site/resources/fetch-in-cross-origin-iframe.html";
15 }
16 runTest();
17 </script>
18 </body>
19 </html>