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:$false

VIDEO

SCREENSHOTS

REFERENCES

1 Comment

  1. 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?

Leave a Comment

Return to Top ▲Return to Top ▲