From 5154b6008f54c9d096f5efe9ae347492c23dd780 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 7 Jul 2020 23:16:32 +1000 Subject: [PATCH] SOLR-14634: Limit the HTTP security headers to "/solr" end point (#1655) --- solr/CHANGES.txt | 2 ++ solr/server/etc/jetty.xml | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index 835900a6199..5a4ffd63fc5 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -241,6 +241,8 @@ Optimizations * SOLR-14554: Add BlockMax-WAND support for queries where the score is requested (Tomás Fernández Löbbe) +* SOLR-14634: Limit the HTTP security headers to "/solr" end point (noble) + Bug Fixes --------------------- * SOLR-13264: IndexSizeTrigger aboveOp / belowOp properties not in valid properties. diff --git a/solr/server/etc/jetty.xml b/solr/server/etc/jetty.xml index ecd4f220fe6..e2f4ab09598 100644 --- a/solr/server/etc/jetty.xml +++ b/solr/server/etc/jetty.xml @@ -93,7 +93,7 @@ - * + /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'; media-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self'; worker-src 'self'; @@ -102,7 +102,7 @@ - * + /solr/* X-Content-Type-Options nosniff @@ -111,7 +111,7 @@ - * + /solr/* X-Frame-Options SAMEORIGIN @@ -120,7 +120,7 @@ - * + /solr/* X-XSS-Protection 1; mode=block