From fc64551c82ea3d3c5887536549ff8034123cb0b0 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 23 Nov 2023 17:03:16 +0100 Subject: [PATCH] Add in documentation example of filtering headers in ajax proxy conf --- docs/ubuntu.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ubuntu.md b/docs/ubuntu.md index 46065584..cd6de65b 100644 --- a/docs/ubuntu.md +++ b/docs/ubuntu.md @@ -380,6 +380,10 @@ In Nginx: } resolver 8.8.8.8; add_header X-Proxy-Target $target_url; # For debugging + proxy_pass_request_headers off; + proxy_set_header Content-Type $http_content_type; + proxy_set_header Content-Encoding $http_content_encoding; + proxy_set_header Content-Length $http_content_length; proxy_read_timeout 10s; proxy_connect_timeout 5s; proxy_pass $target_url;