Releases: simonw/asgi-cors
Releases · simonw/asgi-cors
1.0.1
1.0
- Options to set
access-control-allow-headers
andaccess-control-allow-methods
. Thanks, Thorben Westerhuys. #7 callback
can now also be anasync def
function. Thanks, Jordan Eremieff. #4- Option to set
access-control-max-age
header. #12
asgi-cors 0.3
Added the callback=
parameter:
def validate_origin(origin):
return origin.startswith("https://")
app = asgi_cors(app, callback=validate_origin)
asgi-cors 0.2
Unit tests and a better README.