Loading...

Content Security Policies (CSP) are coming to SharePoint Online and might impact your custom SPFx solutions

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 more
Need help with this product?

We 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.

M365 Admin
M365 Admin

by João Ferreira

Share post:

Related posts

Microsoft Defender for Cloud Apps: Unified RBAC support for App Governance to manage NHIs

Microsoft Defender for Cloud Apps’ App Governance will support unified Defender XDR RBAC in public preview starting late November 2026, ...

10 hours ago

Microsoft OneDrive for iPad: Presentation mode for PDFs

Microsoft OneDrive for iPad will introduce a presentation mode for PDFs, enabling a focused, view-only experience that disables free scrolling...

10 hours ago

Microsoft Purview | Data Loss Prevention: Protection for local AI agent interactions

Microsoft Purview Data Loss Prevention is expanding to protect sensitive data in supported local AI agent interactions, allowing administrator...

10 hours ago

Microsoft OneDrive for Windows and Mac: node_modules folders will be excluded from sync by default

Starting December 14, 2026, OneDrive for Windows and Mac will exclude new folders named “node_modules” from syncing by default to ...

10 hours ago

Microsoft Teams: Intelligent call recap for call queues in the Queues app on mobile

Microsoft Teams mobile’s Queues app will add intelligent call recap for recorded and transcribed call queue calls starting early Decembe...

10 hours ago

Microsoft Agent 365 Business Analytics: Introducing Access Management

Access Management for Agent 365 Business Analytics centralizes role and permission assignments for admins, combining permission sets and data ...

10 hours ago

Autopilot availability in Frontier

Autopilot will roll out in Frontier Public starting November 17, 2026, as an always-on cloud agent requiring admin enablement and Microsoft 36...

10 hours ago

Agent 365 Business Analytics app experience

Agent 365 Business Analytics, launching November 17, 2026, offers AI spend, usage, and value insights in Microsoft 365 admin center. Features ...

10 hours ago

Dataverse – Dataverse Data Available in Agent Builder Declarative Agents

We are announcing the ability to select Power Platform and Dynamics 365 data as a knowledge data source when creating and editing Declarative ...

10 hours ago

Updates available for Microsoft 365 Apps for Current Channel

We’ve released updates to the following update channel for Microsoft 365 Apps: Current Channel When this will happen: We’ll be gra...

10 hours ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.