Invidious is an alternative front-end to YouTube
Revert "Add Origin header checks"
Omar Rothf98812382091
diff --git a/src/invidious.cr b/src/invidious.crindex d8c7301e..3c251d96 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -128,15 +128,6 @@ if CONFIG.geo_bypassendbefore_all do |env|- if CONFIG.domains && env.request.headers["Origin"]?- origin = env.request.headers["Origin"]- domains = CONFIG.domains.not_nil!-- if !domains.includes? origin- halt env, status_code: 403- end- end-env.response.headers["X-XSS-Protection"] = "1; mode=block;"env.response.headers["X-Content-Type-Options"] = "nosniff"diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.crindex 98357440..92a2e1b1 100644--- a/src/invidious/helpers/helpers.cr+++ b/src/invidious/helpers/helpers.cr@@ -16,7 +16,6 @@ class Confighmac_key: String?,full_refresh: Bool,geo_bypass: Bool,- domains: Array(String)?,})end