2020-12-20

Sitefinity Content Security Policy Setting

Where to find the setting?

There is an option to update CSP rule in backend dashboard setting from Sitefinity v11 onwards, under

  • /Sitefinity/Administration/Settings/Basic/WebSecurityBasicSettings

setting1

Please avoid remove the default CSP rule as it has high chance you will break Sitefinity frontend / backend unwillingly.

Example front-end broken:

screen1

Example back-end broken:

screen2

How to fix it?

Download

Download this zip and amend the script (to your desired CSP rules). Then, execute the script in your database instance.

References