Custom script issue

- Enable custom scripting on an individual site collection.
- Enable custom scripting on your entire SharePoint Tenant.
Option 1 - Enable on a site collection
Step 1 - Install SharePoint Online Management Shell https://www.microsoft.com/en-us/download/details.aspx?id=35588 Step 2 - Run SharePoint Online Management Shell Step 3 - run CommandConnect-SPOService https://yourDomain-admin.sharepoint.com


$site = Get-SPOSite https://yourDomain.sharepoint.com/sites/yourSiteCollection

$site | Set-SPOSite -DenyAddAndCustomizePages 0

This change takes effect immediately, so you can re-deploy the app to this site collection immediately

Option 2 - Enable tenant
- Sign in to Office 365 as a global admin or SharePoint admin.
- Click the app launcher icon (on your left upper corner). Select Admin to open the Office 365 admin center. If you don’t see the admin tile, you don’t have Office 365 administrator permissions in your organization.

- In the left pane, choose Admin centers then SharePoint.

- Select settings.
- Under Custom Script select:
- Allow users to run custom script on personal sites.
- Allow users to run custom script on self-service created sites.
Please note this change may take up to 24 hours to take effect.


