Remediation Steps
Follow the steps below to remediate this finding on Nginx webserver.
In your nginx.conf server block, add:
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';" always;Reload Nginx:
sudo systemctl reload nginxNote: Start with Content-Security-Policy-Report-Only to test before enforcing.