gyng / save-in

WebExtension for saving media, links, or selections into user-defined directories
MIT License
208 stars 26 forks source link

Pass Referer when following redirections in HEAD requests #193

Open proItheus opened 2 years ago

proItheus commented 2 years ago

Currently, after turning on the option, the plugin does include the Referer field when doing HEAD requests in firefox, but when the site gives a 302 redirection, the redirected request contains no Referer. I'm using a website which redirect my download to some s3 storage site, and get all my filenames become download due to the storage site returning 403 for the HEAD request ...

Sorry for my bad English : )

gyng commented 1 year ago

This looks difficult as I don't see any webRequest API to follow redirects as well. I'm happy to be corrected, of course.

irrweg commented 6 months ago

You can use the Addon SimpleModifyHeaders and try with it, to bypass the restriction, it works great with the Addon "Imagus Mod".

This is how the settings for SimpleModifyHeads looks like currently on my FF.

Screenshot 2024-05-02 at 09-40-39 Simple Modify Headers