[Vuejs]-Is there a way to send a GET request in an API endpoint for xlsx for the vuejs to use?

0👍

You can request URL as you do by using GET
but you have to take care of what are you doing

Front-end Side:
Using download attribute

 this.$http.get(api_url)
    .then((response) => {
     let a= document.createElement('A')
     a.href= response.data
     a.download = true
     document.body.appendChild(a)
     a.click()
    }

if you don’t want to appear you can manage by CSS display:none or opacity:0

Back-end Side:

you have to add to the data or the link you provide as response Header Content-Disposition

Content-Disposition: 'attachment'  // for example

Leave a comment