OneDrive excel file in html

Copper Contributor

I have  this code here to log my excel table intothe console in my browser. But this don't work. If I create an input form it works, but without like this here not. The error: inquiry blocked. What's the problem and how can I fix this?

 

 

 

 

let link = 'https://1drv.ms/x/s!Am0AJ8jei95ji0a5ESUueGXWfU1e?e=QVv'

                let blob

                fetch(link)

                .then( (result) => result.blob() )

                .then( (blobResult) => blob = blobResult 

              window.onload = function(){

                readXlsxFile(blob).then(function(data){

                  console.log(data)

                })

              }

 

 

Don't wonder if the link to the excel file don't work, I changed it

 

0 Replies