# Content Security Policy

- Link: https://www.agilicus.com/anyx-guide/content-security-policy/
- Published: 2024-05-14T00:24:41+00:00
- Author: Don Bowman

1. [Home](https://www.agilicus.com/)
 2. Content Security Policy

![content-security](https://www.agilicus.com/www/1e423ec9-content-security.svg)

Secure Your Application

---

## Content Security Policy

A [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)
is a header which instructs a browser how to interpret & allow or deny various types
of active content (images, fonts, frames, …). It helps mitigate certain types of
attacks including Cross-Site-Scripting (XSS) or data injection.

[CONTACT](https://www.agilicus.com/contact-us/)

## Concepts

A [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP)
is a header which instructs a browser how to interpret & allow or deny various types
of active content (images, fonts, frames, …). It helps mitigate certain types of
attacks including Cross-Site-Scripting (XSS) or data injection.

The Agilicus Web Application Firewall allows setting and editing this header. You
can see it on the ‘Define’ tab of the application. 3 macro-settings may be applied:

 * clear — remove (unset) the Content-Security-Policy
 * strict angular defaults — this is a set of defaults suitable for an Angular application
   compiled with AOT and subresource-integrity
 * lax angularjs defaults — this is a set of defaults suitable for an older AngularJS
   application (including unsafe-inline)

Once you set one of these buttons you may then edit the individual types.

In addition to the check-box settings, a set of ‘hosts’ may be configured. This 
can include ‘data:’ , ‘*’, ‘https:’, ‘https://example.com’, etc. For more information
see Content Security Policy (CSP) in the Mozilla Web Docs.

## Additional Information
