Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Thank you for reaching out.
Based on my research, this behavior is expected in New Outlook. Unlike classic Outlook, New Outlook runs add-ins in a browser-based environment, which enforces standard web security rules. These rules operate at the domain (origin) level rather than the URL path level, so even if a sub-path is specified in the manifest, the browser evaluates the response headers of the root domain.
Because your root domain returns X-Frame-Options: SAMEORIGIN, the browser prevents Outlook (which runs under a different domain) from embedding the page in an iframe, resulting in the issue you are seeing.
Reference: Address same-origin policy limitations in Office Add-ins - Office Add-ins | Microsoft Learn
Regarding configuring CSP (frame-ancestors), as far as I understand, this approach can be effective if it is applied at the root domain level and no conflicting headers remain. Since New Outlook operates in a browser-based environment, framing decisions are enforced at the domain (origin) level rather than at a specific add-in path. This means that configuring frame-ancestors only for /msoffice-plugin/ is not sufficient.
To fully resolve the issue, the root domain must explicitly allow iframe embedding, for example:
Applying the frame-ancestors directive at the root domain level.
Ensuring that restrictive headers, such as X-Frame-Options: SAMEORIGIN, are removed or appropriately adjusted.
Please note that this summary is based on my own findings and may not fully address your concerns. To help you reach your goal more effectively, I recommend engaging with [GitHub Community Forum] for a deeper technical dive or to connect with individuals who have relevant experience and expertise. Some approaches may behave differently or be restricted depending on your specific environment and configuration. These forums include many experienced developers and Microsoft specialists who can assist with troubleshooting and guidance.
Apologies for redirecting you to the related development team support. As moderators in this community, we do not have access to your specific tenant configuration, and my testing environment is limited. Therefore, my guidance is based on available Microsoft documentation and resources. That said, I’ll do my best to provide additional insight where possible.
If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.