blob: 4d8b937558a9290c9ecc1de73c747ac9508d1507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<h1>iframe</h1>
<script>
self.addEventListener('securitypolicyviolation', e => {
window.parent.postMessage({ violatedDirective: e.violatedDirective,
originalPolicy: e.originalPolicy, blockedURI: e.blockedURI });
});
</script>
</body>
</html>
|