在nginx 配置下面这段 add_header Access-Control-Allow-Headers 'X-Requested-With,content-type,token,range'; add_header Access-Control-Allow-Methods 'GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS, PATCH'; add_header Access-Control-Expose-Headers 'Accept-Ranges,Content-Encoding,Content-Length,Content-Range';