Skip to content

Instantly share code, notes, and snippets.

View Ludonaut's full-sized avatar

Ludonaut

View GitHub Profile
@Ludonaut
Ludonaut / pyserver
Created January 7, 2018 14:17 — forked from EntityB/pyserver
HTTPS server with CORS and python
#!/usr/bin/env python2
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# add it to PATH
# Run as follow:
# pyserver
# pyserver 8085
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import HTTPServer