0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-12-15 13:19:41 +00:00
2023-10-16 13:58:16 +02:00

11 lines
412 B
Python

from http.server import HTTPServer, SimpleHTTPRequestHandler
class COOPCOEPHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header('Cross-Origin-Embedder-Policy', 'require-corp')
self.send_header('Cross-Origin-Opener-Policy', 'same-origin')
SimpleHTTPRequestHandler.end_headers(self)
httpd = HTTPServer(('localhost', 8000), COOPCOEPHandler)
httpd.serve_forever()