Hello Haproxy group- migrating from haproxy 2.0 to 2.1 and noticed some directives changed:
=== 2.0.10 === capture request header origin len 128 http-response add-header Access-Control-Allow-Origin %[capture.req.hdr(0)] if { capture.req.hdr(0) -m end aiqwest.com } http-response add-header Access-Control-Allow-Headers:\ Origin,\ X-Requested-With,\ Content-Type,\ Accept if { capture.req.hdr(0) -m found } === 2.1 === capture request header origin len 128 http-response add-header Access-Control-Allow-Origin %[capture.req.hdr(0)] if { capture.req.hdr(0) -m end aiqwest.com } rspadd add-header Access-Control-Allow-Headers:\ Origin,\ X-Requested-With,\ Content-Type,\ Accept if { capture.req.hdr(0) -m found } getting: The 'rspadd' directive is not supported anymore since HAProxy 2.1. Use 'http-response add-header' instead. when adding the said above, getting an error: 'http-response add-header' expects exactly 2 arguments. main question is, how can I convert the resadd statement to work with the new 2.1? Thank you!