📜  CSRF 验证失败.请求中止. - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:36.296000             🧑  作者: Mango

代码示例1
Django CSRF Token
CSRF verification failed. Request aborted.
---------------------------------------------------
from django.views.decorators.csrf import csrf_exempt # import
@csrf_exempt  # add this token before defining function
    def def_name():
        ...