postman发起请求如下图
在django中使用如下方式获取token
print(request.META)
token = request.META.get('HTTP_X_TOKEN')
postman发起请求如下图
在django中使用如下方式获取token
print(request.META)
token = request.META.get('HTTP_X_TOKEN')
转载于:https://www.cnblogs.com/robinunix/p/11435352.html