Django跨域

1.中间件要放在前边的位置

'corsheaders.middleware.CorsMiddleware',

原文地址:https://www.cnblogs.com/banml/p/10820428.html