OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
656 stars 93 forks source link

Outlook Addin Office.context.mailbox.makeEwsRequestAsync calls are failing with 403 forbidden for outlook.com accounts #4353

Open JulienSchneider opened 2 months ago

JulienSchneider commented 2 months ago

Provide required information needed to triage your issue

I'm implementing an Outlook add-in. All calls to Office.context.mailbox.makeEwsRequestAsync are all failing with 403 forbidden for outlook.com (outlook.live.com) accounts. It works fine for Microsoft 365 accounts (outlook.office.com). The EWS calls I make are "GetItem" (to get messages by id) and "CreateItem" to send messages (with MessageDisposition="SendAndSaveCopy") but the behavior is the same for any EWS call.

Looks very similar to https://github.com/OfficeDev/office-js/issues/4292

Your Environment

Expected behavior

Office.context.mailbox.makeEwsRequestAsync call is successful for outlook.com accounts

Current behavior

Office.context.mailbox.makeEwsRequestAsync call fail for outlook.com accounts

Steps to reproduce

  1. Call Office.context.mailbox.makeEwsRequestAsync from an Outlook add-in with an outlook.com (outlook.live.com) account


Link to live example(s)




Provide additional details




Context

Useful logs

This is what I see happening in the browser console

rkpathak commented 2 months ago

Thanks for reporting this issue. It has been put on our backlog. We unfortunately have no timelines to share at this point.

Internal tracking id: Office: [269409]