1.中间件要放在前边的位置 'corsheaders.middleware.CorsMiddleware', 转载于:https://www.cnblogs.com/banml/p/10820428.html