OLD | NEW |
1 <?php | 1 <?php |
2 if ($_GET["report-only"]) { | 2 if ($_GET["report-only"]) { |
3 header("Content-Security-Policy-Report-Only: suborigin " . $_GET["suborigin"
]); | 3 header("Content-Security-Policy-Report-Only: suborigin " . $_GET["suborigin"
]); |
4 } else { | 4 } else { |
5 header("Content-Security-Policy: suborigin " . $_GET["suborigin"]); | 5 header("Content-Security-Policy: suborigin " . $_GET["suborigin"]); |
6 } | 6 } |
7 ?> | 7 ?> |
8 <!DOCTYPE html> | 8 <!DOCTYPE html> |
9 <script> | 9 <script> |
10 window.parent.secret = 'I am a secret'; | 10 window.parent.secret = 'I am a secret'; |
11 parent.postMessage('Done', '*'); | 11 window.onload = function() { |
| 12 parent.postMessage('Done', '*'); |
| 13 } |
12 </script> | 14 </script> |
OLD | NEW |