signals.py 281 B

123456
  1. from django.dispatch import Signal
  2. # If any attached handler returns Truthy, CORS will be allowed for the request.
  3. # This can be used to build custom logic into the request handling when the
  4. # configuration doesn't work.
  5. check_request_enabled = Signal(providing_args=['request'])