I followed the example and I was able to get the Access Token for authentication but this was only possible using Node.JS. I came across HOW TO - Get an Access Token for Microsoft Graph API using Node.JS. ![]() I tried Using the OneDrive API in JavaScript apps (CORS support) example but that did not work. On button click event, a JavaScript function should access OneDrive and download Excel file for display on the browser without any user interactions or authentication.Īs you know, making an AJAX call to the direct download link of the OneDrive file that looks something like this: "." throws Access to download link has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I am trying to build a static web page using pure HTML CSS and JavaScript with the ability to download a file from OneDrive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |