web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Why does local SPA dev...
Power Pages
Suggested Answer

Why does local SPA development require Public site visibility?

(0) ShareShare
ReportReport
Posted on by

The current SPA local development guidance requires setting site visibility to Public in order to enable localhost development and hot reload. This feels inconsistent, because a local developer workflow depends on a visibility mode intended for production-ready, internet-facing sites. Since Public site visibility is reserved for production scenarios, using it as a prerequisite for local SPA development is confusing and counterintuitive. Is this really the expected design, or are there plans to introduce a dedicated developer/localhost mode for non-production environments?

Categories:
I have the same question (0)
  • Suggested answer
    Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at
     
    this as far as I know is the current standard for the options localhost development and hot reload. Otherwise you would just not be able to get any kind of authentication which is blocked when a page is private. 

    For example when using a tool like clarity or google analytics on a private site, you won't be able to see any traffic. The entire page is locked behind the "cloud-side authentication gate".
     
    If you are using Ai to develop it you probably can download some sample entitiy schemas and let Ai create sample data, obviously not the same as a page directly connected to dataverse.

    I've not heard about anything being released soon towards that topic.
    You can still try submitting an idea here: https://ideas.powerpages.microsoft.com/d365community/forum/1edba0ec-30cf-ec11-a7b5-000d3a545c96

    Hope that helps.
  • Suggested answer
    DP_Prabh Profile Picture
    201 on at

    Hi @CU11031005-0,

    As Lucas mentioned, the current guidance requires the site visibility to be set to Public to enable user authentication and support localhost development. I agree that this can feel counterintuitive, since the Public setting is typically associated with production, internet-facing sites rather than development workflows.

    In a similar scenario, I explored a workaround using MSAL-based authentication for a proof of concept. I implemented custom authentication with MSAL and tested it locally. Since Power Pages roles are associated with the Contact table, we used an admin app where administrators could add user details to the Contact table and assign appropriate roles whenever a new user was added in Azure AD. This allowed users to access the local development pages and see content based on their assigned roles.

    This approach worked for development and testing purposes, but it requires manual management and was mainly used as a POC, so it’s not an ideal long-term solution. It would be much more efficient if users authenticated via MSAL could automatically be mapped to Contacts and inherit the appropriate Power Pages permissions, rather than requiring manual updates.

    I hope this workaround provides some useful context or ideas while working with the current setup.

     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#2
CN-06091549-0 Profile Picture

CN-06091549-0 18

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 17 Most Valuable Professional

Last 30 days Overall leaderboard