Skip to content

Releases: simonw/asgi-cors

1.0.1

Choose a tag to compare

@simonw simonw released this 12 Apr 03:18
e626ba9
  • 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

1.0

Choose a tag to compare

@simonw simonw released this 08 Apr 16:15
744a760
  • 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

Choose a tag to compare

@simonw simonw released this 07 May 15:49

Added the callback= parameter:

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

app = asgi_cors(app, callback=validate_origin)

asgi-cors 0.2

Choose a tag to compare

@simonw simonw released this 07 May 15:50

Unit tests and a better README.