To add content security policy using addheaders in values.yaml file #2826
praveensounder
started this conversation in
General
Replies: 2 comments 1 reply
-
This is duplicated here: #2827 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Headers are manipulated at the server block level using the VirtualServer resource |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we are using Nginx ingress controller 2.1.1 - https://github.com/nginxinc/kubernetes-ingress/tree/v2.1.1
We need to add Content security policy to the config file.
We passed using addheaders but its not getting reflected.
Kindly please let us know How to add content security policy in helm charts values.yaml file
We need to add configuration Inside nginx server {} block like below:
add_header Content-Security-Policy "default-src 'self';";
Link: https://content-security-policy.com/examples/nginx/
Beta Was this translation helpful? Give feedback.
All reactions