Response.Headers.Append("Access-Control-Expose-Headers", "FileInfo"); // 必须增加这个设置,否则客户端无法获取该header,因为不安全 Response.Headers.Append("FileInfo", System.Web.HttpUtility.UrlEncode(result.data.FileName));
Response.Headers.Append("Access-Control-Expose-Headers", "FileInfo"); // 必须增加这个设置,否则客户端无法获取该header,因为不安全 Response.Headers.Append("FileInfo", System.Web.HttpUtility.UrlEncode(result.data.FileName));