SharePoint 2016 onpremises page not blocking in Iframe and asks for username and password

Web/SharePoint Full Stack 1 Reputation point
2021-09-28T07:44:02.28+00:00

When I try to run a SharePoint page that is not published and need authentication in the iframe it asks for username and password while the SharePoint page which is published and has anonymous access not asks for a username and password in Iframe.

Is there is a way so that Iframe blocks both published and authenticated SharePoint pages when call in IFrame?

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2021-09-29T02:08:49.3+00:00

    Hi @Web/SharePoint Full Stack ,
    As far as I know ,there is no such way to block authenticated sharepoint pages. Authenticated SharePoint pages mean we need permission to connect to the page. So when we log in. The authentication is necessary. If you want to skip authentication , can only set anonymous access or publish.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.