diff --git a/README.md b/README.md index fa5b4763..6627164c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # inv.nadeko.net Invidious Fork -TODO \ No newline at end of file +TODO diff --git a/config/config.example.yml b/config/config.example.yml index cd92b55d..2c829c08 100644 --- a/config/config.example.yml +++ b/config/config.example.yml @@ -237,9 +237,13 @@ https_only: false ## ## Configuration for using a HTTP proxy -## ## If unset, then no HTTP proxy will be used. +## Proxy type supported: HTTP, HTTPS ## +## This is not used for loading the video streams from YouTube servers (circumvent YouTube restrictions) +## Please instead configure the proxy in Invidious companion: +## https://github.com/iv-org/invidious-companion/blob/master/config/config.example.toml +## #http_proxy: # user: # password: diff --git a/src/invidious.cr b/src/invidious.cr index ec7cef15..d444cb6e 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -80,7 +80,7 @@ TEST_IDS = {"AgbeGFYluEA", "BaW_jenozKc", "a9LDPn-MO4I", "ddFvjfvPnqk" MAX_ITEMS_PER_PAGE = 1500 REQUEST_HEADERS_WHITELIST = {"accept", "accept-encoding", "cache-control", "content-length", "if-none-match", "range"} -RESPONSE_HEADERS_BLACKLIST = {"access-control-allow-origin", "alt-svc", "server"} +RESPONSE_HEADERS_BLACKLIST = {"access-control-allow-origin", "alt-svc", "server", "cross-origin-opener-policy-report-only", "report-to", "cross-origin", "timing-allow-origin", "cross-origin-resource-policy"} HTTP_CHUNK_SIZE = 10485760 # ~10MB CURRENT_BRANCH = {{ "#{`git branch | sed -n '/* /s///p'`.strip}" }}