From 50079d2ab706eb539b4d9257e691977d36cb2504 Mon Sep 17 00:00:00 2001 From: D34DC3N73R Date: Sat, 2 Sep 2023 23:43:01 -0700 Subject: [PATCH] Fix Missing Content-Type This adds text/html content type which allows the `X-Content-Type-Options nosniff` header to be used without error on reverse proxies. --- backend/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app.js b/backend/app.js index 10776658..2dd6b93c 100644 --- a/backend/app.js +++ b/backend/app.js @@ -2152,6 +2152,8 @@ app.use(function(req, res, next) { let index_path = path.join(__dirname, 'public', 'index.html'); + res.setHeader('Content-Type', 'text/html'); + fs.createReadStream(index_path).pipe(res); });