coop-same-origin-repeated.asis (845B)
1 HTTP/1.1 200 OK 2 Cross-Origin-Opener-Policy: same-origin 3 Cross-Origin-Opener-Policy: same-origin 4 Server: BaseHTTP/0.3 Python/2.7.15+ 5 Date: Wed, 18 Dec 2019 00:47:08 GMT 6 7 <!doctype html> 8 <meta charset=utf-8> 9 <script src="/common/get-host-info.sub.js"></script> 10 <iframe></iframe> 11 <script> 12 const navigate = new URL(location).searchParams.get("navigate"); 13 if (navigate !== null) { 14 self.location = navigate; 15 } else { 16 const iframe = document.querySelector("iframe"); 17 iframe.onload = () => { 18 const payload = { name: self.name, opener: !!self.opener }; 19 iframe.contentWindow.postMessage(payload, "*"); 20 }; 21 const channelName = new URL(location).searchParams.get("channel"); 22 iframe.src = `${get_host_info().HTTPS_ORIGIN}/html/cross-origin-opener-policy/resources/postback.html?channel=${channelName}`; 23 } 24 </script>