Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script>
function run() {
let ifr = document.createElement("iframe");
document.body.appendChild(ifr);
let doc = ifr.contentWindow.document;
doc.open();
doc.write(`<script>document.cookie = "foo=bar; Secure; Partitioned; SameSite=None"<\/script>`);
doc.close();
}
</script>
</head>
<body onLoad="run();">
</body>
</html>