Skip to content

Instantly share code, notes, and snippets.

View oxbits's full-sized avatar
🐍
snake_case 🧳

alex clifton oxbits

🐍
snake_case 🧳
View GitHub Profile
@razor-x
razor-x / server.py
Last active February 3, 2025 00:28
Python http.server that sets Access-Control-Allow-Origin header.
# Python http.server that sets Access-Control-Allow-Origin header.
# https://gist.github.com/razor-x/9542707
import os
import sys
import http.server
import socketserver
PORT = 8000