#!/usr/bin/env python3
# Minimal static file server for the macOS browser-level POC.
# Usage: python3 server.py  (then open http://localhost:8080/poc-macos.html)
import http.server
import socketserver

PORT = 8080

class Handler(http.server.SimpleHTTPRequestHandler):
    def end_headers(self):
        self.send_header('Cache-Control', 'no-store')
        super().end_headers()

if __name__ == '__main__':
    socketserver.TCPServer.allow_reuse_address = True
    with socketserver.TCPServer(('127.0.0.1', PORT), Handler) as httpd:
        print(f'Serving on http://127.0.0.1:{PORT}/poc-macos.html')
        httpd.serve_forever()
