wg-backend-django/dell-env/lib/python3.11/site-packages/corsheaders/signals.py

9 lines
291 B
Python
Raw Normal View History

2023-10-30 03:40:43 -04:00
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()