-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
42 lines (42 loc) · 1.49 KB
/
index.html
File metadata and controls
42 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nested Cross-Origin Sandbox Iframes</title>
</head>
<body>
<h1>Outer Iframe (Cross-Origin)</h1>
<iframe srcdoc="
<!DOCTYPE html>
<html>
<head>
<title>Middle Iframe</title>
</head>
<body>
<h2>Middle Iframe (Cross-Origin)</h2>
<iframe srcdoc='<!DOCTYPE html><html><head><title>Final Iframe</title></head><body><p>Hello from Creative Tag</p>
<script>window.top.postMessage(JSON.stringify({ogy_postmessage_channel: 'creative_tracking',
data: {
creativeId: 'creativeId loaded successfully',
}
}), document.referrer);
console.log('Creative Tag loaded successfully');
setInterval(() => {
window.top.postMessage(JSON.stringify({ogy_postmessage_channel: 'creative_tracking',
data: {
creativeId: 'creativeId interval successfully',
}
}), document.referrer);
console.log('Creative Tag loaded interval message successfully');
}, 10000);
</script>
</body></html>'
sandbox='allow-scripts'>
</iframe>
</body>
</html>"
sandbox="allow-scripts allow-same-origin" width="500" height="300">
</iframe>
</body>
</html>