mirror of
https://github.com/tursodatabase/libsql.git
synced 2024-11-23 17:56:18 +00:00
11 lines
412 B
Python
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()
|