D
D
donflash2020-04-01 21:45:18
proxy
donflash, 2020-04-01 21:45:18

How to modify https response headers in haproxy?

Hello!
I use haproxy to balance many purchased http proxies.
Proxies are used to access http s sites.
There is a chrome web browser, in the settings of which (as a proxy) haproxy is specified.

The final scheme is as follows:
google chrome -> haproxy -> proxy -> https site

The task is to add the X-Proxy response header (what proxy haproxy issued for a particular request) so that google chrome can see it.
Adding this header when accessing an http site is fine, but the https response cannot be modified because haproxy needs to decode the SSL response first.

Tell me how to solve this problem? Will SSL termination help here?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question