def anonymous_csrf_exempt(f):
    f.anonymous_csrf_exempt = True
    return f


# Replace Django's middleware with our own.
Like @csrf_exempt but only for anonymous requests.
dataset/ETHPy150Open mozilla/django-session-csrf/session_csrf/__init__.py/anonymous_csrf_exempt