Hi Ashwin Sonale,
Thank you for reaching out to Microsoft Q & A forum.
The 403 Forbidden error you're seeing when accessing the Static Web App through the private endpoint is typically related to network or DNS configuration issues. Since the app works publicly, the app itself is healthy; this is likely specific to private access.
Please check the following:
1.DNS Resolution: Ensure the custom domain resolves the private endpoint IP from within your virtual network.
2.Host Header: The request must use the custom domain name, not the IP address, as the Static Web App validates the Host header.
3.Access Restrictions: Confirm that there are no access restrictions in place blocking traffic from the private network.
4.Private DNS Zone: Make sure the private DNS zone is correctly linked to your virtual network and includes the appropriate A record for the private endpoint.
If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.