yashag2255 / iframePCF

PCF to enable an iframe functionality in canvas apps for Power Apps.
42 stars 41 forks source link

Error: "<domain_name>.sharepoint.com refused to connect" #34

Open FrazzApps opened 9 months ago

FrazzApps commented 9 months ago

I'm trying to display a SharePoint page on my App but I'm getting a ".sharepoint.com refused to connect" error.

I've tried the URL in a iFrame tester and the error details are: Refused to frame 'https://.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 engage.cloud.microsoft .officeapps.live.com .office.com .microsoft365.com .stream.azure-test.net .microsoftstream.com .dynamics.com .microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com".

however the app is running under the URL: https://apps.powerapps.com/play/e/default........... so I would have thought it should work given *.powerapps.com is listed above

Have you run into this, any thoughts on how to resolve it?

jordiba90 commented 1 month ago

I guess the reason is that iframe cannot login to Sharepoint. Just external links.

Caspian11 commented 1 month ago

I also have this same problem. The component won’t connect to SharePoint. Update - It won't connect to anything.