0

I am trying to load an iFrame which shows the logged in Portal Contact's SharePoint folder.

I am able to specify the src as the SharePoint site root, and the frame loads correctly. And i am able to manually navigate to a contacts folder. However once I try to go one level deeper to the Contact Document Library. The iFrame refuses to load. The error I get in the console is:

Refused to frame 'https://[SiteName].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 onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com".

The issue seems to be when setting the src as the Document Library.

I have went through other forums and their documentation to try and resolve the issue, including adding the powerappsportals domain, and full portal url into the HTML Field Security on the SharePoint site, to no success.

I have raised this with Microsoft directly, both on the Power Apps & SharePoint support sides, but both seem not to know how to resolve this issue, and have thus directed me here, or to to pay for Developer support.

0 Answers0