Cristian,

Am 18.06.20 um 15:20 schrieb Cristian Grigoriu:
> Thank you for your workaround, it works!
> 
> Here's the output of my haproxy -vv command:
> 
> HA-Proxy version 1.7.5-2 2017/05/17

You really should upgrade to HAProxy 1.7.12 at the very least:
http://www.haproxy.org/bugs/bugs-1.7.5.html

Starting with the *upcoming* HAProxy 2.2 the following will work
(http-after-response instead of http-response):

Config:

    frontend stats
        mode http
        bind *:8080
        stats enable
        stats uri /
        http-after-response set-header X-Frame-Options sameorigin

Example:

    $ http --headers localhost:8080
    HTTP/1.1 200 OK
    cache-control: no-cache
    content-type: text/html
    transfer-encoding: chunked
    x-frame-options: sameorigin

Best regards
Tim Düsterhus

Reply via email to