Invidious is an alternative front-end to YouTube
Bump max-age for HSTS
Omar Roth734905d1f7b0
diff --git a/src/invidious.cr b/src/invidious.crindex 0690c1d8..2e031c7d 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -188,7 +188,7 @@ before_all do |env|env.response.headers["Referrer-Policy"] = "same-origin"if Kemal.config.ssl || config.https_only- env.response.headers["Strict-Transport-Security"] = "max-age=604800; includeSubDomains"+ env.response.headers["Strict-Transport-Security"] = "max-age=31536000; includeSubDomains; preload"endbegin@@ -5189,7 +5189,7 @@ if Kemal.config.sslredirect_url += "?#{env.request.query}"end- env.response.headers["Strict-Transport-Security"] = "max-age=604800; includeSubDomains"+ env.response.headers["Strict-Transport-Security"] = "max-age=31536000; includeSubDomains; preload"env.response.headers["Location"] = redirect_urlenv.response.status_code = 301end