def end_headers (self): self.send_header('Access-Control-Allow-Origin', '*') CGIHTTPRequestHandler.end_headers(self)