How to embed office 365 word document in edit mode in external sites

Zaid Sultan 6 Reputation points
2022-05-23T17:06:43.737+00:00

I want to embed office 365 word document in an external site, Office 365 allows embedding word documents in external sites in preview mode (read only), But I want it in edit mode. When I take the preview mode embed code and change the source URL to edit instead of preview, I encounter response header content security policy which denies framing it in external domains other than Microsoft domains.

content-security-policy:

frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com;

Here is the error

Here is the error:

Refused to frame 'https://xx-my.sharepoint.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com".

Microsoft 365 and Office | Word | For business | Windows
{count} vote

1 answer

Sort by: Most helpful
  1. Stewart Flack 6 Reputation points
    2022-08-31T09:51:16.693+00:00

    Did you get an answers for this request?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.