From 1c2f430454e3e8ada8601089c1e04a9ded0f0b6e Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 31 May 2023 16:44:01 -0600 Subject: [PATCH] teuthology: Tell browsers not to sniff test logs Signed-off-by: Zack Cerza --- roles/teuthology/templates/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/teuthology/templates/nginx.conf b/roles/teuthology/templates/nginx.conf index 62d1542a..d459062d 100644 --- a/roles/teuthology/templates/nginx.conf +++ b/roles/teuthology/templates/nginx.conf @@ -11,6 +11,9 @@ server { server_name {{ inventory_hostname }}; location /teuthology { alias {{ archive_base }}; + # Prevents Chromium from thinking certain text files are binary, + # e.g. console logs while reimaging is underway + add_header X-Content-Type-Options nosniff; } types { text/plain log; -- 2.47.3