2017-04-04 47 views
1

我有一個休息服務來下載文件,並且Edge有一個小問題。當我發送GET請求以獲取瀏覽器文件時,顯示以下確認對話框。MS Edge顯示文件起源爲「about:blob」

enter image description here

「發件人」屬性應指向任何當前的主機名,而是,它說在「about:斑點」。

我覺得我錯過了一些標題,但無法弄清楚哪一個。 這裏是我的請求和響應頭(從開發者工具捕獲):

* 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 

不知道如何告訴邊緣使用主機名代替?

回答

0

在Edge瀏覽器版本40.15中解決的問題