Wait for response predicates?

With Wait For Response I can only give url matcher but on js side there’s possibility for predicates where I could check the originating http method..

So, I’m trying to get the response of PUT but because this is external host, I get CORS (options) and then PUT.

I thought that I’ll add two promises to wait for response but both are fulfilled with the response to OPTIONS.

Question; am I wrong here ? If not, how about at least some basic support for predicate checks ?

Hello @rasjani,
You’re on the right track! Since OPTIONS is fulfilled first due to CORS preflight, a predicate-based filtering approach could help differentiate requests. Adding conditional logic to check the HTTP method might refine your response handling. Worth exploring!

Best Regards,
Clark Dahl