Content Security Policies (CSP) are coming to SharePoint Online and might impact your custom SPFx solutions
Starting March 1, 2026, SharePoint Online will enforce Content Security Policy (CSP), blocking scripts from non-trusted sources in custom SPFx solutions. To avoid disruption, ensure all scripts come from trusted sources and move inline scripts to files. CSP enforcement can be postponed 90 days via PowerShell. We’re improving SharePoint Online security via Content Security Policy (CSP) enforcement. Currently CSP is applied in reporting mode but as of March 1, 2026, the Content Security Policy will be enforced which will prevent the loading of script (e.g. JavaScript) from non-allowed sources. This message center post replaces MC1055557 (April 2024). This change is associated with Microsoft 365 Roadmap ID: 485797 When this will happen: This will be implemented starting March 1, 2026. How this will affect your organization: If your organization extended SharePoint Online using SPFx then the created custom SPFx solutions could potentially load scripts from locations which are not allowed. In most cases SPFx solutions use and load script from allowed locations, but that’s not always the case. Any script from a not allowed location will be blocked, the same applies for any inline script usage. SPFx solutions whose script is getting blocked will not function anymore as designed, impacting business scenarios depending on those solutions. To prevent solutions from breaking there you need to: Ensure all used script locations are trusted script sources. This can be done without updating the SPFx solution Move all inline script to script files which can then be defined as trusted source. This will require updating the SPFx solution! If you need more time to review your SPFx solutions, there’s an option to postpone CSP enforcement by 90 days via below SPO Management Shell PowerShell cmdlet. Set-SPOTenant -DelayContentSecurityPolicyEnforcement $true Note: This option will be available in the SPO Management Shell version 16.0.26712.12000 (November 2025) or higher. What you need to do to prepare: In addition to the default CSP settings, SharePoint Online will add locations listed in the Trusted Script Sources area of the SharePoint Online Admin Center as valid locations for CSP, thus enabling script loading from those locations. To add an entry, in […]
The post Content Security Policies (CSP) are coming to SharePoint Online and might impact your custom SPFx solutions appeared first on M365 Admin.
Published on:
Learn moreWe can help you with Content Security Policies (CSP) are coming to SharePoint Online and might impact your custom SPFx solutions
If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.
Related posts
Power Pages: First Class Support for Connector APIs in Power Pages
Native connectors support through Power Pages will allow organizations to securely connect their websites/portals directly to enterprise syste...
New MSRC blog: Microsoft’s response to compromised eMudhra certificate authority keys
Microsoft has published a new blog post outlining our response to the compromise of eMudhra intermediate certificate authority keys, including...
Power Platform – Information about the 2026 time zone changes in Canada
Power Platform services are being updated to support the 2026 time zone changes in Manitoba, Alberta, and British Columbia. This is a general ...
Dynamics 365 apps and Dataverse – Information about the 2026 time zone changes in Canada
Dynamics 365 apps and Dataverse are being updated to add the new Canadian time zone definitions in support of the 2026 time zone changes in Ma...
Microsoft Teams Default meeting template
Default meeting templates let IT admins set organization-wide meeting options for Teams meetings scheduled via Outlook or Teams calendar, ensu...
Microsoft 365 admin center: Manage authoritative sources for Microsoft 365 Copilot Search
Admins with Global admin or reader roles can manage up to 100 authoritative SharePoint Online sites in Microsoft 365 Copilot Search via the ad...
Microsoft 365 Apps: Cloud Update – Export Improvements
Microsoft 365 Apps Cloud Update will enhance export capabilities in Inventory and Cloud Update views, adding more device and update details, f...
Change Optics Report
The Change Optics report for Exchange Online is now generally available worldwide, helping admins identify email traffic affected by upcoming ...
Microsoft Teams: Malicious QR code detection in messages
Microsoft Teams will detect malicious QR codes in messages, providing warnings for phishing or fraud threats starting November 2026. This appl...
AI Builder credits retirement: Prepare to use Copilot Credits
Microsoft is retiring AI Builder credits by November 1, 2026, replacing them with Copilot Credits. Organizations must plan and purchase Copilo...