Cloudflare Workers - Query params not working
hello cloudflare team!
it seems as though there's a bit of a bug with workers, when creating a working that has a query string parameter, if you add a route that is on a custom domain in your zone, it will give back a "Bad Gateway" Error everytime.
for instance, my worker works on:
login.devacc-xxx.workers.dev?auth=xxx
but not
api.list.com/login?auth=xxx
4 Replies
You can’t add routes that contain a query parameter
nooo 😩
seems like a strange thing to be missing! you can do custom urls with query params
Only invoking a Worker if there’s a specific query param isn’t a common request - but you could make a feature request at #workers-feature-suggestions
we like to be funky over here!
thanks for your help