0
我正在更改下載端點的行爲以重定向到實際下載文件的其他域。這已經開始在IE10中失敗(以前沒有嘗試過),而在Chrome et。人。不是打開下載對話框,而是將用戶重定向到新的文件url,然後打開對話框。IE10下載鏈接失敗,跨域重定向
這裏的請求和其頭的新序列:
HTTP/1.1 307 Temporary Redirect
Server: nginx/1.1.19
Date: Wed, 02 Oct 2013 11:30:07 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 307 Temporary Redirect
X-Content-Type-Options: nosniff
X-Date: 1380713407016
Cache-Control: max-age=0, private
Location: https://someotherdomain.com/files/100?token=jfkldsfdshlfsdlkdfs
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Robots-Tag: none
X-Runtime: 0.129865
X-XSS-Protection: 1; mode=block
X-UA-Compatible: IE=Edge,chrome=1
curl -I "https://someotherdomain.com/files/100?token=jfkldsfdshlfsdlkdfs"
HTTP/1.1 200 OK
Server: nginx/1.1.19
Date: Wed, 02 Oct 2013 11:19:43 GMT
Content-Type: image/jpeg
Content-Length: 9961
Connection: keep-alive
Content-Disposition: attachment; filename="some file "with" + & wierd characters.jpeg"; filename*=UTF-8''some%20file%20%22with%22%20%2B%20%26%20wierd%20characters.jpeg
Last-Modified: Fri, 20 Sep 2013 15:30:53 GMT
ETag: "04e88973d658dc21e263865cbd6d20da"
Accept-Ranges: bytes
X-Content-Type-Options: nosniff
X-Download-Options: noopen
Cache-Control: max-age=0, must-revalidate
Expires: Fri, 01 Jan 1990 00:00:00 GMT
任何人都可以看到什麼可疑的。我被引導認爲Content-Type和Content-Disposition是重要的標題,它們是可以的,所以它必須是導致問題的重定向/新域。