Skip to content

To add content security policy using addheaders in values.yaml file #2827

Closed
@praveensounder

Description

@praveensounder

Discussed in #2826

Originally posted by praveensounder July 7, 2022

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions