You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
do you mean to specify/override HTTP headers of req.subrequest()?
You are expected to configure the desired request headers in a sub location.
This is pretty similar to what lua module does: https://github.com/openresty/lua-nginx-module#ngxlocationcapture Note that subrequests issued by ngx.location.capture inherit all the request headers of the current request by default and that this may have unexpected side effects on the subrequest responses. For example, when using the standard ngx_proxy module to serve subrequests, an "Accept-Encoding: gzip" header in the main request may result in gzipped responses that cannot be handled properly in Lua code. Original request headers should be ignored by setting proxy_pass_request_headers to off in subrequest locations.
while proxying i can solve this, but if a subrequest hits a js_content location there is no way.
The text was updated successfully, but these errors were encountered: