Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Ziun
New Contributor

Add CSP Header in FortiWeb

Hello all,

 

I am running into an issue where we are getting a scan result from one of our IP addresses stating that it is missing the Content-Security-Policy (CSP) Header and I am just not sure where/what needs to be changed in FortiWeb for that Security Policy to remediate the issue.

 

Here is the information I am given from my scan, if it proves helpful:

Content-Security-Policy HTTP Header missing on port 443. GET / HTTP/1.1

 

Some generic remediation from the application that we use:

 

Content-Security-Policy: (Please note that these values may differ from website to website. The values below are for informational purposes only. The scanner simply looks for the presence of the security header.)

Apache: Header set Content-Security-Policy "script-src 'self'; object-src 'self'" IIS: <SYSTEM.WEBSERVER><HTTPPROTOCOL><CUSTOMHEADERS><ADD NAME="Content-Security-Policy" VALUE="default-src 'self';"></ADD></CUSTOMHEADERS></HTTPPROTOCOL></SYSTEM.WEBSERVER> nginx: add_header Content-Security-Policy "default-src 'self'; script-src 'self';

 

Any help is appreciated.

Thanks.

0 REPLIES 0
Labels
Top Kudoed Authors