We have simple firewall that blocks non-browser requests to our websites by checking the user-agent request header. Requests from webpkgserver gets blocked as it uses Go's http client as user-agent.
We're wondering if it's possible for use add custom request header that gets relayed to https://example.com/foo.html so we can use it header to unblock requests from webpkgserver.
we expect to have all requests from webpkgserver to https://example.com/foo.html will have the X-Is-WebPackager: 1 header. But, the custom header is not present which results in the request being blocked by firewall.
Hi!
We have simple firewall that blocks non-browser requests to our websites by checking the user-agent request header. Requests from
webpkgserver
gets blocked as it uses Go's http client as user-agent.We use Nginx to proxy pass to
webpkgserver
. Eg:We're wondering if it's possible for use add custom request header that gets relayed to
https://example.com/foo.html
so we can use it header to unblock requests fromwebpkgserver
.With the config below:
we expect to have all requests from
webpkgserver
tohttps://example.com/foo.html
will have theX-Is-WebPackager: 1
header. But, the custom header is not present which results in the request being blocked by firewall.Is it by design?