Hi @nandhini.dhandapani@triyam.com
According to the documentation, if you download a file in a JavaScript application, Microsoft Graph will redirect it with 302, but due to the CORS policy, the browser will reject the redirect, resulting in an error that the resource cannot be found.
So when you download a file, first make a request that includes the @microsoft.graph.downloadUrl
property:
GET /drive/items/{item-ID}?select=id,@microsoft.graph.downloadUrl
And then file could be downloaded by marking another request for the Url provided in @microsoft.graph.downloadUrl property.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.