blob: 815ecf5927ce370998e3908f8eb49e961e3e1c64 (
plain)
1
2
3
4
5
|
def main(request, response):
headers = [(b"Content-Type", b"text/html"),
(b"Cross-Origin-Resource-Policy", request.GET[b'corp'])]
return 200, headers, b"<body><h3>The iframe</h3><script>window.onmessage = () => { parent.postMessage('pong', '*'); }</script></body>"
|