server/python/django2/renkanmanager/auth.py
author ymh <ymh.work@gmail.com>
Mon, 11 Mar 2019 18:06:33 +0100
changeset 660 6d939abb9273
parent 589 0ae11aa255a3
child 665 69d13e7dd286
permissions -rw-r--r--
Upgrade version for screenfull.js to correct problem of fullscreen button on chrome. increment version number

from rest_framework.authentication import SessionAuthentication 

class CsrfExemptSessionAuthentication(SessionAuthentication):
    """
        Session authentication class to use with Renkan client, as it does not provide a csrf token
    """
    
    
    def enforce_csrf(self, request):
        return