0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2024-11-23 17:56:18 +00:00
libsql/libsql-sqlite3/ext/wasm/fiddle/serve.py
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()