This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http.server | |
| import socketserver | |
| import requests | |
| # Removed unused imports from urllib.parse | |
| # --- Configuration --- | |
| PORT = 8080 | |
| TARGET_URL_PREFIX = "/" # The prefix in the path before the target URL (e.g. /http://target.com) | |
| # --- CORS Headers to add to the response --- |