Skip to content

How to edit content security policy when deploying with Helm #789

@Joshuaariolu

Description

@Joshuaariolu

I'm running Apache Solr 9.8.0 on Amazon EKS using Helm. I want to modify the security-related HTTP headers that Solr sets—specifically, I want to remove 'unsafe-inline' from the Content-Security-Policy (CSP) header. How can I achieve this?

Currently, the CSP is defined in the Jetty configuration (likely in jetty.yaml or jetty-rewrite.xml) with a rule like this:

/solr/* Content-Security-Policy default-src 'none'; base-uri 'none'; connect-src 'self'; form-action 'self'; font-src 'self'; frame-ancestors 'none'; img-src 'self' data:; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; worker-src 'self';

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