I have a form for downloading files and I want to add {'Authorization': 'Token' + tokenString}
header for backend authorization. However I heard that AJAX can't save responses as files so I used <form action="download_url">
.
The problem here is that I don't know how to add custom header to this form request, so anyone can download the files with right link. How the header be added? Or is there another way around it?