I have developed a Outlook web add-in which reads the mail and meeting/appointment content from the mailbox using Office JS API. I am able to retrieve all the contents using javascript API except the attachments for which I am using the Microsoft.Exchange.WebServices nuget package to download the attachments in my asp.net mvc based Outlook web add-in.
Since this functionality for retrieving is done in server side code, it does not work for on-premise exchange servers where the exchange APIs are not accessible publicly on internet.
Is there any other way to retrieve and save the attachments using client side code / JavaScript so that I do not need my client to expose the on-prem exchange URLs?