标签:self auth ade ddl eth cors response -o col
cors中间件
from django.utils.deprecation import MiddlewareMixin class CorsMiddleWare(MiddlewareMixin): def process_response(self,request,response): if request.method=="OPTIONS": response["Access-Control-Allow-Methods"] = "GET" response["Access-Control-Allow-Origin"] = "*" response["Access-Control-Allow-Headers"] = "Content-Type,Authorization" return response
标签:self auth ade ddl eth cors response -o col
原文地址:https://www.cnblogs.com/chongdongxiaoyu/p/13045464.html