Upload any static HTML to SharePoint Online
Step by step demo how to upload and static HTML resources to SharePoint Online. By default Microsoft will block this web display and force the HTML file to download locally. With a quick PowerShell setting change we can modify the default Site Collection setting and set DenyAddAndCustomizePages = $false, which now gives ability to display any HTML file which has been renamed to ASPX. Details below including PowerShell code. Cheers

CODE
$siteUrl = "https://spjeffdev.sharepoint.com/sites/Test/"
Connect-PnPOnline $siteUrl
Set-PnPTenantSite -Url $siteUrl -DenyAddAndCustomizePages:$falseVIDEO
SCREENSHOTS

REFERENCES
- NoExecute = 0 allows for web browser
- NoExecute = 1 blocks and forces download
- https://www.mrsharepoint.guru/host-static-website-on-sharepoint-online/
- https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script
- https://sharepoint.handsontek.net/2022/02/07/host-static-html-sites-modern-sharepoint-site-collections/
- https://stackoverflow.com/questions/71149864/how-to-host-static-html-page-on-sharepoint-online
- https://techcommunity.microsoft.com/t5/sharepoint/rendering-static-html-pages-from-sharepoint-online/m-p/394392


Estaba muy interesante, y se puede hacer lo mismo por ejemplo si tengo una lista de Sharepoint y con con un html con js consulto la lista para editarla por ejmplo, ese formulario web se puede insertar en Sharepoint?