@classmethod
def setup_xsrf(cls, xsrf_cookies):
    """
        Sample configuration::

            xsrf_cookies: false         # Disables xsrf_cookies
            xsrf_cookies: true          # or anything other than false keeps it enabled
        """
    cls.check_xsrf_cookie = (cls.noop if xsrf_cookies is False else cls.
        xsrf_ajax)
