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.
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.
{
"WasProxySuccessful": false,
"ErrorMessage": "The remote server returned an error: (403) Forbidden.",
"StatusCode": 0,
"StatusDescription": null,
"Body": null
}
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
Link to live example(s)
Provide additional details
Context
Useful logs
This is what I see happening in the browser console