MS Edge将文件来源显示为“about:blob”

时间:2017-04-04 04:02:18

标签: java rest microsoft-edge

我有一个休息服务来下载文件,而Edge有一个小问题。当我发送GET请求以获取浏览器文件时,显示以下确认对话框。

enter image description here

'From'属性应该指向当前主机名,但是它表示'about:blob'。

我觉得我错过了一些标题,但无法弄清楚哪一个。 以下是我的请求和响应标头(从开发工具中捕获):

 *  REQUEST  *
Accept: application/json
Accept-Encoding: gzip, deflate
cache-control: no-cache
Connection: Keep-Alive
content-type: application/json
Cookie: JSESSIONID=XXXXXXXX
DNT: 1
Host: localhost:8080
Origin: http://localhost:8080
pragma: no-cache
Referer: http://localhost:8080/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393

 *  RESPONSE  *
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: origin, content-type, accept, authorization, x-requested-with, content-encoding, Cookie
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE, PUT
Access-Control-Allow-Origin: http://localhost:8080
Cache-Control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Disposition: attachment; filename="C:UsersmikhailDocumentsdesktop.ini"
Content-Length: 402
Content-Type: application/json
Date: Tue, 04 Apr 2017 03:42:11 GMT
Pragma: no-cache
Server: WildFly/10
x-filename: C:\Users\mikhail\Documents\desktop.ini
X-Powered-By: Undertow/1

知道如何告诉Edge使用主机名吗?

1 个答案:

答案 0 :(得分:0)

Edge浏览器版本40.15中解决了该问题