How to Prevent Cloudflare Workers from running on ?ajax-wc

Viewed 26

I have several cloudflare workers and understand how to create a Bypass.. however, you are not allowed to bypass on query urls such as "?ajac-wc". Simultaneously, running my workers on this url breaks my call to Ajax on Woocommerce... So for now, I have set my workers to run on every single letter of the alphabet like so (but there has to be a better way; no?)

enter image description here

1 Answers

Sorry, there's currently no way to specify a negative route based on the presence of a query in the URL. You will have to design the worker itself such that it checks for the query and forwards the request on to origin verbatim if it is present.

Related