Hi @Alex Miller ,
Yes, after my testing, this is because the administrator has disabled custom scripts. You can also verify custom script status in the active sites of the sharepoint admin center.
To allow custom script on a particular site immediately, follow these steps:
Connect to SharePoint as a SharePoint Administrator in Microsoft 365. To learn how, see Getting started with SharePoint Online Management Shell.
- Run the following command.
or by means of the PnP.PowerShell cmdlet Set-PnPSiteSet-SPOSite
Set-PnPSite -Identity
Reference:https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script
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.