博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
django-csrf_exempt
阅读量:4580 次
发布时间:2019-06-09

本文共 269 字,大约阅读时间需要 1 分钟。

from django.views.decorators.csrf import csrf_exempt @csrf_exempt # 前端ajax请求时需要验证,否则403 def fun(request):   if request.method == 'POST': # 请求方式时Post则响应     HttpResponse('ok')
posted on
2018-05-31 15:13 阅读(
...) 评论(
...)

转载于:https://www.cnblogs.com/tangpg/p/9116869.html

你可能感兴趣的文章