blob: ddeb582a19bc8e4681e794c6a963fb72e7dc4c34 (
plain)
1
2
3
4
5
6
7
8
9
|
def main(request, response):
ua = request.headers.get(b'Sec-CH-UA', b'')
response.headers.set(b"Content-Type", b"text/html")
response.content = b'''
<script>
window.opener.postMessage({ header: '%s' }, "*");
</script>
Sec-CH-UA: %s
''' % (ua, ua)
|