Skip to content

Releases: simonw/asgi-cors

1.0.1

12 Apr 03:18
e626ba9
Compare
Choose a tag to compare
  • Fix for a bug where applications that already serve access-control-allow-origin CORS headers would serve the header twice, breaking things in surprising ways. #13

1.0

08 Apr 16:15
744a760
Compare
Choose a tag to compare
1.0
  • Options to set access-control-allow-headers and access-control-allow-methods. Thanks, Thorben Westerhuys. #7
  • callback can now also be an async def function. Thanks, Jordan Eremieff. #4
  • Option to set access-control-max-age header. #12

asgi-cors 0.3

07 May 15:49
Compare
Choose a tag to compare

Added the callback= parameter:

def validate_origin(origin):
    return origin.startswith("https://")

app = asgi_cors(app, callback=validate_origin)

asgi-cors 0.2

07 May 15:50
Compare
Choose a tag to compare

Unit tests and a better README.