I think when I tested this and was getting the 522 error, the worker was listening on domainA.com in - Cloudflare Developers