On a server I have several files which are protected via HTTP authentication.
Now I want to create download buttons on my HTML page to download these files. I already read that downloading a file via JavaScript/AJAX isn't possible due to security reasons. See this question.
Furthermore via an "normal" download link/button like this: <a href="..." download>
it isn't possible to set the HTTP Header to provide HTTP authentication.
Is there any possibility to make a download button/link to a file with HTTP Basic authentication.
Furthermore to give a little bit more detail about my usecase, I don't want to use sessions.