HAProxy - Add response header based on request host
Solution 1:
You can use set-var
http-request set-var(txn.host) hdr(Host)
acl myhost var(txn.host) -m str example.com
http-response set-header X-Frame-Options SAMEORIGIN if myhost
You can use set-var
http-request set-var(txn.host) hdr(Host)
acl myhost var(txn.host) -m str example.com
http-response set-header X-Frame-Options SAMEORIGIN if myhost