Skip to content

Commit

Permalink
strip cookie headerrs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandonPierre committed Sep 11, 2023
1 parent 21928f1 commit 4817ac2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions nginx.manifest.common.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 4817ac2

Please sign in to comment.