djang csrf

 

局部禁用和局部使用

from django.views.decorators.csrf import csrf_exempt,csrf_protect

 

装饰器:

@csrf_exempt

@csrf_protect

 

posted @ 2020-10-04 09:47  Toney1975  阅读(79)  评论(0)    收藏  举报