how to get the Content-Disposition header

Hello, in the script section of my page I am getting a file from by spring Backend. its a blob response and I need the file name, however the content-disposition is not exposed in the $fetch response. Also using $fetch.raw doesn't help.
1 Reply
Cue
Cue2mo ago
How are you retrieving the header? IIRC headers are limited for CORS requests. To get a particular header you’d read it as response.headers.get('Content-Disposition')
Want results from more Discord servers?
Add your server