Skip to content

A cors enabled webserver for local testing, it includes some caching too.

Notifications You must be signed in to change notification settings

idltd/cors_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usage: main.py [-h] [-p PORT] [-c CACHE_DURATION] [-v] [-d]

Run a CORS-enabled HTTP server for local development.

options:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Port to run the server on (default: 8000)
  -c CACHE_DURATION, --cache-duration CACHE_DURATION
                        Cache duration in seconds (default: 3600)
  -v, --verbose         Enable verbose output (program flow)
  -d, --debug           Enable debug output (detailed content)

This server enables CORS for specified origins and provides a proxy for remote requests. It's intended for local development only. Do not use in production.

About

A cors enabled webserver for local testing, it includes some caching too.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages