Hi All,

I want to set X-Frame-Options to SAMEORIGIN but should be Ifram or access
by one of our subdomain website.
means  i want to allow www.abc.com from oms.abc.com



Any one one know how to set X-Frame-Options with SAMEORIGIN & ALLOW-FROM in
HaProxy

I added one setting in haproxy config file but showing error.

acl main_site req.hdr(Host) http://www.abc.com
http-response add-header X-Frame-Options:\ ALLOW-FROM\ http://oms.abc.com if
main_site
http-response add-header X-Frame-Options:\ SAMEORIGIN if ! main_site



Error is :
[ALERT] 074/100716 (29069) : parsing [/opt/haproxy-ssl/haproxy.cfg:42]:
'http-response add-header' expects exactly 2 arguments.
[ALERT] 074/100716 (29069) : parsing [/opt/haproxy-ssl/haproxy.cfg:43]:
'http-response add-header' expects exactly 2 arguments.

Please suggest what syntax should i use for this.
I am using HA-Proxy version 1.5.14



Devendra Joshi
--------------------------------------------------------------
--------------------------------------------

Reply via email to