Step 1: Go to the Settings page of the new SharePoint admin center, and sign in with an account that has admin permissions for your organization.
Step 2: At the bottom of the page, select classic settings page.
Step 3: Under Custom Script, select:
- Allow users to run custom script on personal sites
- Allow users to run customer script on self-service created sites