Message Center

MC1055557SharePoint Online: Content Security Policy Control in Tenant Administration

This announcement expired on Aug 25, 2025 and is no longer active in Message Center.

Summary

SharePoint Online Tenant Administrators can now control script sources for modern pages, allowing custom code from external sources. Rollout timelines: Targeted Release (late March to early April 2025), General Availability (late April 2025), and GCC, GCC High, DoD (late April to late June 2025). No admin action required.

More information

Updated June 11, 2025: We have updated the timeline below. Thank you for your patience.

SharePoint Online Tenant Administrators can now allow script sources for modern pages in SharePoint sites. This feature is particularly useful in scenarios where modern pages have custom code that loads scripts (e.g., TypeScript code) from external sources like a content delivery network (CDN). SharePoint will now report to administrators where sources that have not been allowed are loaded from, providing a way for administrators to identify those sources and take action. Tenant Administrators can also enforce browsers to only load scripts from allowed sources. This behavior can be enabled using SharePoint Online Management Shell.

When this will happen:

Targeted Release: We will begin rolling out on late March 2025 and expect to complete by early April 2025.

General Availability (Worldwide): We will begin rolling out on late April 2025 and expect to complete by late April 2025.

General Availability (GCC, GCC High, DoD): We will begin rolling out on late April 2025 and expect to complete by late June 2025 (previously early June).

How this will affect your organization:

Tenant Administrators will have the option to control and govern where custom code loads scripts and, if needed, enforce browsers to only load scripts from trusted sources. A new "Trusted script sources" page will give administrators control over which source can be trusted to load scripts.



What you need to do to prepare:

This rollout will happen automatically with no admin action required.

Version history

4 versions tracked

Updated 3 times since Apr 15, 2025. Microsoft 365 Message Center only shows the current version; this archive preserves tracked history.

Compare any two versions

From
To
  1. Jun 11, 2025 - 05:57 PMLatest - v4

    Changed: Body, End date

  2. May 21, 2025 - 07:27 PMv3

    Changed: Body, End date

  3. May 1, 2025 - 09:52 PMv2

    Changed: Body, Tags

  4. Apr 15, 2025 - 12:32 AMOriginal - v1

    Changed: Initial version