Domanda

I'm trying to build a SharePoint app part to include in a SharePoint online page allong with other web parts.

I'm using SharePoint online developer to deploy the solution I'm developing in visual studio community 2017.

The app works in its custom link, but when I insert the app part in a page, is doesn't work, I'm getting a JavaScript error saying it can't load content from external domain... I already included allowframing tag in the master page without success, is this because I'm In the developer SharePoint or is it another problem?

Thank you

È stato utile?

Soluzione

I don't know whether this will work for you too or not, but I recently developed an SharePoint Hosted App and that App contains the Client WebPart and multiple pages.

I got the same error. I searched and I found this solution.

I was too having an App Master Page, but I included following line to each of my *.aspx page.

<WebPartPages:AllowFraming ID="AllowFraming" runat="server" />

I used different different ID for every page. I haven't tried registering this on masterpage.

But registering on every page worked for me.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top