# Content Security Policy (CSP)

If you need to enforce content security policy (CSP) on the users browsers you can enable CSP on ngSurvey using following enviroment variable.

**`NGSurvey:CPSPolicy`**&#x6D;ust be set to "Self" will enforce the content security policy (CSP) on the browser.&#x20;

{% hint style="warning" %}
Widget based answer items and any custom javascript related features like form codes, custom answer validations will be disabled if set to Self.&#x20;
{% endhint %}
