We have an application which has a API key in the HTTP headers. We try to capture the condition base on the presence of the API key. We created a custom exception rule using Header Name and Header Value. However, it seems the parameters cannot be detected correctly.
The HTTP Header in JSON format looks like this:
"header":[{"key":"user-agent","value":"Dart/3.2 (dart:io)"},{"key":"accept-language","value":"zh-Hant"},{"key":"accept-encoding","value":"gzip"},{"key":"authorization","value":"bearer xxxx"},{"key":"apikey","value":"xxxxxxx"}]
Anyone can suggest how to match the apikey and its value to the condition? Thanks.