Skip to content

Sanic 19.12 CORS Error Handler fix

Compare
Choose a tag to compare
@ashleysommer ashleysommer released this 19 Feb 12:21
· 12 commits to master since this release
  • Fixed the errors seen in Sanic 19.12+ where the CORS exception handler could be triggered
    before the request context for a given request is created.
    • If on Sanic 19.9+ fallback to using the request.ctx object when request_context is not available
  • Fixes #41