Open pvasilek opened 9 months ago
+1
+1
ofetch.raw
also returns a response with empty headers {}
It is not a library. New security features from browsers. I do not think it may be possible to make a fix.
response.headers.get('content-disposition')
Describe the feature
File downloading can parse a filename from the response header 'content-disposition'. As I see there is no way neither to get response headers nor the filenames. It may be also extra parameter for .then(($blob, $headers) => {}) Not sure if it will work as async onResponse({ request, response, options }) { console.log("[fetch response]", response, JSON.stringify(response.headers)) }, shows no headers at all.
Additional information