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?

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,132 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,626 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,971 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 36,821 Reputation points Microsoft Vendor
    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.