blob: 1329683c88bf584cbc63479f3ba3f6e06281f223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
<!DOCTYPE html>
<head>
</head>
<body>
<script>
window.addEventListener('securitypolicyviolation', function(e) {
top.postMessage({iframe: 'iframe1', violatedDirective: e.violatedDirective}, '*');
});
setTimeout(function() {
top.postMessage("end_test", "*");
}, 4000);
</script>
IFRAME 2
</body>
|