0

I have a SharePoint Hosted App that works outside of a SharePoint Page.

If I insert as web part or app part in a page I get an error message. It says that's impossible to see these contents in a frame and that for security reasons cannot be seen.

Is there something I could do to make it visible?

With other apps I have no problems.

Thanks

1

Generally to stop the framing attacks the site has iframe disabled. The iframe can be disabled at page level or IIS level.

Page Level : Check if the page has meta tag saying DENY eg meta name=”X-FRAME-OPTIONS” content=”DENY” />

OR

IIS setting : Follow these steps: 1. Open Internet Information Services (IIS) Manager. 2. In the Connections pane on the left side, expand the Sites folder and select the site that you want to protect. 3. Double-click the HTTP Response Headers icon in the feature list in the middle. Check the iframe options ,it might have DENY.

1

I've solved adding this in my Client Web Part page:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.