Sometimes this leads to failed download or empty file (0 bytes).
I'm not 100% sure missing referrer is the reason why I'm unable to download some files, but I just tried this link in uGet and got 404. I copied page url as a referrer for this download and tried again, and everything worked. So I'm assuming that might be the reason. Not posting links here because it's nsfw content.
Sometimes this leads to failed download or empty file (0 bytes). I'm not 100% sure missing referrer is the reason why I'm unable to download some files, but I just tried this link in uGet and got 404. I copied page url as a referrer for this download and tried again, and everything worked. So I'm assuming that might be the reason. Not posting links here because it's nsfw content.
Referrer header can be passed with other headers: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/downloads/download#Parameters