signals.py 291 B

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