How to add content security policy (CSP) to nginxinc ingress controller or ingress rule.
I tried both of the below annotation to ingress rule but neither worked.
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
more_set_headers "Content-Security-Policy-Report-Only: Content-Security-Policy: script-src 'self' 'none' ;";
add_header Content-Security-Policy: default-src 'self' 'none' ;