Post

Replies

Boosts

Views

Activity

Reply to How to download a PDF via WKWebView but open it in QuickLookPreview?
Hello ! I'm trying to implement your solution but I need to do this : const contentDisp = 'attachment; filename="document.pdf"'; I'm not getting the Content-Disposition header here, only content-length and content-type I sniffed the network with Wireshark and could find the HTTP answer is all ok... Internet Protocol Version 4, Src: 10.234.25.103, Dst: 10.234.24.155 Transmission Control Protocol, Src Port: 8080, Dst Port: 50584, Seq: 112813, Ack: 1277, Len: 1275 [80 Reassembled TCP Segments (113563 bytes): #1727(1448), #1728(1448), #1729(1448), #1730(1448), #1731(1448), #1732(952), #1733(1448), #1738(1448), #1739(1448), #1740(1448), #1741(1448), #1742(1448), #1743(1448), #1744(1448), #1745(1448), #] Hypertext Transfer Protocol 		HTTP/1.1 200 \r\n 		Vary: Origin\r\n 		Vary: Access-Control-Request-Method\r\n 		Vary: Access-Control-Request-Headers\r\n 		Access-Control-Allow-Origin: *\r\n 		Access-Control-Expose-Headers: Authorization\r\n 		Content-Disposition: attachment; filename="3300050009001.pdf"\r\n 		X-Content-Type-Options: nosniff\r\n 		X-XSS-Protection: 1; mode=block\r\n 		Cache-Control: no-cache, no-store, max-age=0, must-revalidate\r\n 		Pragma: no-cache\r\n 		Expires: 0\r\n 		X-Frame-Options: DENY\r\n 		Content-Type: application/pdf\r\n 		Content-Length: 113042\r\n 		Date: Wed, 12 Aug 2020 08:36:03 GMT\r\n 		\r\n 		[HTTP response 2/2] 		[Time since request: 0.250664000 seconds] 		[Prev request in frame: 1506] 		[Prev response in frame: 1507] 		[Request in frame: 1512] 		[Request URI: http://10.234.25.103:8080/backend/documents/3300050009001.pdf] 		File Data: 113042 bytes Media Type Do someone have an idea where the header would be filtered out ?
Aug ’20