#!/usr/bin/env python3
"""Serve poc.html with Origin-Agent-Cluster: ?0 header.

Required since M149: kOriginAgentClusterDefaultEnabled puts srcdoc
iframes in a separate agent cluster by default, breaking
self.frameElement access. The header opts out.

Usage: python3 serve.py
Then:  Open DevTools, navigate to http://localhost:8080/poc.html
"""
import http.server

class Handler(http.server.SimpleHTTPRequestHandler):
    def end_headers(self):
        self.send_header('Origin-Agent-Cluster', '?0')
        super().end_headers()

print('http://localhost:8080/poc.html')
http.server.HTTPServer(('localhost', 8080), Handler).serve_forever()
