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

Hi All,

Greetings. LIFE IS BEAUTIFUL 🙂

Today, I am sharing one of the major updates related to SharePoint Online.

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

Details

  • Microsoft is improving SharePoint Online security via Content Security Policy (CSP) enforcement.
  • Earlier CSP is applied in reporting mode.
  • From March 1, 2026, the Content Security Policy will be enforced which will prevent the loading of script (e.g. JavaScript) from non-allowed sources.
  • If we are using SPFx and SPFx solutions loads scripts from locations which are not allowed. These scripts will be blocked.
  • 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 work anymore as designed, impacting business scenarios depending on those solutions.

To prevent solutions from breaking there you need to

  • Make sure 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 need updating the SPFx solution!

Microsoft 365 Roadmap ID: 485797 – SharePoint: Content Security Policy Control in Tenant Administration

SharePoint Content Security Policy Control in Tenant Administration rollout information, detailing phases, roadmap ID, and platform specifics.
Image: Microsoft 365 Roadmap ID: 485797 – SharePoint: Content Security Policy Control in Tenant Administration

How to postpone CSP enforcement by 90 days

  • Using PowerShell CMDLET – Set-SPOTenant

Set-SPOTenant -DelayContentSecurityPolicyEnforcement $true


Note – This option will be available in the SPO Management Shell version 16.0.26712.12000 (November 2025) or higher.

References

Thanks for reading! HAPPY SHARING 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.