freebie/venv/lib/python3.12/site-packages/corsheaders/signals.py
2026-09-17 12:51:39 +05:00

8 lines
291 B
Python

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