title: axios POST using blob as responseType
body: <p>So I am trying to download a file via axios and blob. The problem is I need to pass a password, and for that reason I can't use a &quot;GET&quot; request. For test purposes I still made a &quot;GET&quot; request to get me started. Since the project comes to an end I wanted to finally fix that issue but I can't find a solution.</p>
  <p>That is my working code with a &quot;GET&quot; request to give you an idea.</p>
  <pre><code>                    axios({
                          url: `/api/download/?uuid=${uuid}&amp;password=${password}`,
                          method: &quot;GET&quot;,
                          responseType: &quot;blob&quot;,
                      })
                      .then((response) =&gt; {
  
                          var fileURL = window.URL.createObjectURL(
                              new Blob([response.data])
                          );
                          var fileLink = document.createElement(&quot;a&quot;);
  
                          fileLink.href = fileURL;
                          fileLink.setAttribute(&quot;download&quot;, filename);
                          document.body.appendChild(fileLink);
  
                          fileLink.click();
                          self.showLottie = false;
                      })
                      
                      .catch(function (error) {
  
                          self.showLottie = false;
  
                          alert(&quot;Download failed&quot;);
  
                      });
  </code></pre>