0

I have developed a SharePoint InfoPath form to capture contact details of an end users on my public facing SharePoint Online system. On SharePoint Online it works without problem if I have logged in using my credentials, but if I try to hit the URL with anonymous user it shows an error

This content cannot be displayed in a frame.

https://manu-public.sharepoint.com/Pages/ContactUs.aspx

Not Working: If not logged in

Working: If logged in

5
  • does your aspx Page contain a Webpart?
    – Gwny
    Commented Jul 3, 2015 at 8:49
  • Yes it's a Page viewer webpart pointing to new item page of the list on the same site.
    – Manu Singh
    Commented Jul 3, 2015 at 9:11
  • have you checked the permissions for anonymous users to access this form? are you able to open the new item page anonymously?
    – Gwny
    Commented Jul 3, 2015 at 9:31
  • Nope.. New item form is asking for credentials manu-public.sharepoint.com/Lists/ContactUs/Item/newifs.aspx
    – Manu Singh
    Commented Jul 3, 2015 at 9:42
  • so maybe that is your problem?
    – Gwny
    Commented Jul 3, 2015 at 13:08

1 Answer 1

-1

Looks like a cross domain issue

Open the console and check the below error

Refused to display 'https://login.microsoftonline.com/login.srf?wa=wsignin1%2E0&rpsnv=4&ct=1435…m%2F%5Fforms%2Fdefault%2Easpx%3Fapr%3D1&lc=1033&id=500046&guests=1&IsDlg=1' in a frame because it set 'X-Frame-Options' to 'deny'.

Check more here

1
  • I think it can not be a cross domain issue. As the page displays properly if i have logged in using my credentials.
    – Manu Singh
    Commented Jul 3, 2015 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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