from django.views.decorators.csrf import csrf_exempt@csrf_exempt # 前端ajax请求时需要验证,否则403def fun(request): if request.method == 'POST': # 请求方式时Post则响应 HttpResponse('ok')
Copyright @ 2025 .Tang Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster