Forum Discussion

v-amitmundra's avatar
v-amitmundra
Icon for Microsoft rankMicrosoft
Aug 05, 2024

How to Embed a SharePoint file URL in iframe securely?

How to Embed a SharePoint file URL in iframe securely?
File can be public or can be share with the limited access users.

If I open SharePoint file URL then it open in browser, but when embed into iframe in my site then getting error, how to resolve that issue?

Is there any other way to embed SharePoint pdf file URL in react code (iFrame)?

 

Error description seen in browser console log:

Refused to frame ‘https://microsoft.sharepoint.com/’ because an ancestor violates the following Content Security Policy directive: "frame-ancestors ‘self’ teams.microsoft.com *.teams.microsoft.com *.skype.com…

No RepliesBe the first to reply

Resources