无法从响应头中读取 content-disposition 内容

作者: pkumar84创建于 2016年1月20日更新于 2022年2月14日

我在前端创建下载 URL,服务器在响应体中发送数据,在响应头中设置 content-type 和 content-disposition。我可以读取 response.headers.get('content-type'),但无法读取 response.headers.get('content-disposition'),是否 response.headers.get('content-disposition') 不受支持?

内容来源: matthew-andrews/isomorphic-fetch