From 4817ac25c23a2b78b451b5e62d7af4ad3aa7e5ac Mon Sep 17 00:00:00 2001 From: ChandonPierre Date: Mon, 11 Sep 2023 14:11:16 -0400 Subject: [PATCH] strip cookie headerrs --- nginx.conf | 7 +++++++ nginx.manifest.common.conf | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/nginx.conf b/nginx.conf index bc8a0f5..81c7269 100644 --- a/nginx.conf +++ b/nginx.conf @@ -309,6 +309,13 @@ echo "Docker configured with HTTPS_PROXY=$scheme://$http_host/" # But we store the result with the cache key of the original request URI # so that future clients don't need to follow the redirect too proxy_cache_key $original_uri; + resolver 8.8.8.8; # Seems to be needed for redirects. + proxy_ignore_headers Set-Cookie; + proxy_ignore_headers Cache-Control; + proxy_ignore_headers Expires; + proxy_hide_header Set-Cookie; + proxy_hide_header Cache-Control; + proxy_hide_header Expires; } # by default, dont cache anything. diff --git a/nginx.manifest.common.conf b/nginx.manifest.common.conf index 69d809c..2f15187 100644 --- a/nginx.manifest.common.conf +++ b/nginx.manifest.common.conf @@ -6,3 +6,9 @@ proxy_cache_key $uri; proxy_intercept_errors on; error_page 301 302 307 = @handle_redirects; + proxy_ignore_headers Set-Cookie; + proxy_ignore_headers Cache-Control; + proxy_ignore_headers Expires; + proxy_hide_header Set-Cookie; + proxy_hide_header Cache-Control; + proxy_hide_header Expires; \ No newline at end of file