Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Removed deprecated header (#75594)

Roman Abdulmanov2b40d2135725
diff --git a/src/metabase/server/middleware/security.clj b/src/metabase/server/middleware/security.clj
index 6eedd6b95b8..aebc47c581b 100644
--- a/src/metabase/server/middleware/security.clj
+++ b/src/metabase/server/middleware/security.clj
@@ -357,9 +357,7 @@
(setting/get-value-of-type :string :embedding-app-origins-interactive))]
(format "ALLOW-FROM %s" (-> eao (str/split #" ") first))
"DENY")})
- {;; Tell browser to block suspected XSS attacks
- "X-XSS-Protection" "1; mode=block"
- ;; Prevent Flash / PDF files from including content from site.
+ {;; Prevent Flash / PDF files from including content from site.
"X-Permitted-Cross-Domain-Policies" "none"
;; Tell browser not to use MIME sniffing to guess types of files -- protect against MIME type confusion attacks
"X-Content-Type-Options" "nosniff"}
diff --git a/test/metabase/api/common_test.clj b/test/metabase/api/common_test.clj
index 0c1f3131143..2303280eab7 100644
--- a/test/metabase/api/common_test.clj
+++ b/test/metabase/api/common_test.clj
@@ -29,8 +29,7 @@
"Strict-Transport-Security" "max-age=31536000"
"X-Content-Type-Options" "nosniff"
"X-Frame-Options" "DENY"
- "X-Permitted-Cross-Domain-Policies" "none"
- "X-XSS-Protection" "1; mode=block"}})
+ "X-Permitted-Cross-Domain-Policies" "none"}})
(defn- mock-api-fn [response-fn]
((-> (fn [request respond _]