I was try to Add Item in Custom list which in hosted Site from SharePoint hosted App. then try to open same Add Form in Dialogbox and Get this Error. then I Find one very helpful Post By Humberto Lezama.
xxxxxxxx-------------a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
This is because SharePoint 2013 adds the x-frame-options header set to same origin.
to Solve this Problem.
Add this Control on Top of the App Page.
The following tells SharePoint to allow this page to be hosted in an IFrame -
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
Hope So it will help others
0 comments:
Post a Comment