If I use AJAX to download a binary file, is it possible to use JavaScript or another trick to force the browser to download the file and save it? I tried to fake it using location.href="data:application/foo",[data received using ajax]". It works, but the problem is that browsers have a limit of 4K on data uris, and it saves a partial file.
The object of this code is to get around referral checks.