POST is not handled but GET is fine anyone can suggest what i'm doing wrong here?

Jun 1 16:37:50 lb02 haproxy[194941]: :60184 [01/Jun/2022:16:37:50.436] https~ https/ 0/-1/-1/-1/0 301 157 - - LR-- 5/5/0/0/0 0/0 “POST /api/hht/createshipment HTTP/1.1”

Jun 1 16:37:23 lb02 haproxy[194941]: :60176 [01/Jun/2022:16:37:23.792] https~ pack_clusterACC_acl/pack_srv3 0/0/1/15/16 200 3069 - - ---- 13/13/4/4/0 0/0 “GET /api/hht/stores?type=OPERATORS&version=2 HTTP/1.1”

HAPROXY CONFIG FOR PACK_CLUSTERACC_ACL

backend pack_clusterACC_acl
mode http
balance source
hash-type consistent
acl is_ACCEPT_allowed src -f /etc/haproxy/srn-internal.acl
acl restrict_api_endpoint method POST && req.hdr(Referer) -i *.domain.com && src -f /etc/haproxy/srn-internal.acl
acl allowed_referer req.hdr(Referer) -i *.domain.com
http-request deny if { path -i -m beg /api/site/intakePointForm } !restrict_api_endpoint
http-request deny if !is_ACCEPT_allowed
option httpchk HEAD / HTTP/1.0
server pack_srv3 ssl verify none

please check and suggest.
Thank you

That’s not how ACL’s work.

Put your ACL statements in dedicated ACL definitations or use anonymous definitations.

Also, please don’t mix anonymous and named ACL in the same statement, that is just terrible practice. Also I strongly suggest you remove duplicate statements (you are matching and denying request based on the source IP twice).

@lukastribus thankyou for your response and suggestion i will try and update here.