例如:
<iframe src="http://otherdomainidontcontrol.com/blah.csv"></iframe>
并且blah.csv文件的头部如下:
Content-Disposition: attachment; filename=blah.csv;
有没有可能强制blah.csv
在iframe中呈现而不是下载?
例如:
<iframe src="http://otherdomainidontcontrol.com/blah.csv"></iframe>
并且blah.csv文件的头部如下:
Content-Disposition: attachment; filename=blah.csv;
有没有可能强制blah.csv
在iframe中呈现而不是下载?
我认为没有绕过Content-Disposition的方法(这很可能是出于安全原因)。