Hi @Lanh Khưu Thanks for reaching out. please verify the OCP-APIM-Trace for both the working and non-working scenarios https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-api-inspector#trace-a-call
verify if the policy is getting executed or not as shown below
let me know in case of further queries, I would be happy to assist you.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.