Table of Contents
These v19 docs are archived 🔒. Go to the latest docs home or try if this exact page is available in the latest docs.

Content Security Policy (CSP) Coded Rules Guide

In case automation doesn't fulfil all your needs, you can always add additional rules in your C# / Razor code like this.

Kit.Page.AddCsp("default-src", "'self'");

Note that the above example uses the IPageService.

The Kit object is the new v14 ServiceKit which gives you quick access to common services.