FortiWeb
A FortiWeb can be configured to join a Security Fabric through the root or downstream FortiGate.
Loky_40NT
Staff
Staff
Article Id 354326
Description This article explains how to retrieve the Content-Security-Policy (CSP) header on block pages in FortiWeb.
Scope FortiWeb v7.4.5, v7.6.1 and newer.
Solution

Prerequisite.

Configuring/create an HTTP Header Security Policy:

  1. Navigate to Web Protection -> Advanced Protection -> HTTP Header Security -> HTTP Header Security Policy and select + Create New.
  2. Enter a name for the new HTTP Header Security Policy and select 'OK'.
  3. To add a Content Security Policy (CSP) header, select '+ Create New', and choose Content-Security-Policy as the header type. Set the header value to 'default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:' or another value appropriate to the application's requirements.
  4. Select 'OK' to save the new HTTP Header Security Policy.
  5. Assign this new HTTP Header Security Policy with the Content-Security-Policy header to the Web Protection Profile that is applied to the protected web server policy.

 

With this configuration, the Content-Security-Policy (CSP) header will be included on both block and allow pages in FortiWeb.

 

Note:

In FortiWeb versions before v7.4.5 and v7.6.1, the CSP header was only applied to allowed traffic and not on block pages.


Related document:

HTTP Security Headers

Contributors