Issue when Anonymous User navigate to Modern page

Anonymous
2023-11-09T05:53:47.38+00:00

I am using SharePoint 2019 setup in the environment. I set the homepage using modern experience page, when anonymous user browse, it prompts the user to sign in.

Here is what I have tried so far:

I enable the Anonymous Access check mark at the web application level. I enabled this on the extended Zone.

I set the Anonymous Policy to "None - No Policy". I enabled all of the view permissions.

On the site collection level, I set the Anonymous Access to "Entire Website".

In the IIS Manager, I enable the "Anonymous Access".

All of the content on these pages is published. (I even tried empty web part as well)

It only appears when go to modern pages but is fine for classic pages. The sign in pop up actually didn't have any function, if I give correct credentials, nothing happens, if I click cancel, nothing happens as well.

Is there any solution on this?

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,274 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Haoyan Xue_MSFT 21,401 Reputation points Microsoft Vendor
    2023-11-09T06:58:43.48+00:00

    Hi @Jeffrey Ho ,

    It seems this is not a common issue per my test. However, we can work together to narrow down and resolve the situation. Here are the possible causes and what you can try to let us work further.

    1. On publishing sites, try disabling the feature “Limited-access user permission lockdown mode” at the site collection level.sharepoint anonymous access prompt login
    2. If the home page, say default.aspx page is not published & approved, users get a login prompt!
    3. If any referenced resources like images, scripts, CSS files, etc from other libraries require authentication – You’ll get an authentication prompt! E.g. You may have a CSS style sheet from a library, which may not allow anonymous access! Check the permission for the specific library and grant anonymous users to “read” the content.
    4. Try to use a different browser or your browser's InPrivate mode to see if the same error occurs.

    Hope the information can help you. And if there have any unclear or misunderstanding, please feel free to post back and we’ll continue to help you all the time!

    Your understanding and patience will be highly appreciated! Hope you have a good day and keep safe!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  2. Haoyan Xue_MSFT 21,401 Reputation points Microsoft Vendor
    2023-11-28T06:50:21.13+00:00

    Hi @Jeffrey Ho ,

    That's okay, I'm glad to hear back from you.

    The libraries you need to look at for method 3 depend on which list/library/folder web parts you are using on your current page.

    You can also check and try the following:

    1.You originally created a classic page, which worked fine, but after converting it to a modern page, it prompts the user to sign in,Right?

    2.Is everyone facing this situation?View through another computer or account.

    3.Are all files in Pages and library web part published with major version?

    4.Try to create a new modern page as Home page and tell me the result ok?

    Hope the information can help you. And if there have any unclear or misunderstanding, please feel free to post back and we’ll continue to help you all the time!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  3. Haoyan Xue_MSFT 21,401 Reputation points Microsoft Vendor
    2023-11-28T08:19:51.9466667+00:00

    Hi @Jeffrey Ho ,

    For the question "Page creators do not receive an email notification after approving or rejecting a page"

    This is expected behavior. Out-of-the-box alerts are shown below.If you want the page creator to receive an email notification after approving or rejecting a page, you need to use the Power automate .

    For the issue "Prompting user to log in when anonymous user navigates to a modern page", since I can't reproduce your situation, I haven't found more issues and solutions that are the same as your situation. If you don't think this matter affects you much, you don't need to worry about it. If you do mind, we recommend that you contact Microsoft Customer Support Services (CSS) by phone so that a dedicated support professional can assist you in a more efficient manner. Please go to the website Global Customer Service phone numbers - Microsoft Support) to find related number and call it to create a new Phone Service Request to Microsoft Phone Support team.

    Hope the information can help you. And if there have any unclear or misunderstanding, please feel free to post back and we’ll continue to help you all the time!

    Your understanding and patience will be highly appreciated! Hope you have a good day and keep safe!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".