Worker Custom Domain + Custom Hostname = 522 Error

I created a Worker that has a custom domain assigned to it ( for this example).

I then turned on custom hostnames for so that I could have multiple domains CNAME’d to that single domain.

However, when I tried to CNAME to, Cloudflare returned a 522 error.

Any idea why?

The request chain (as I understand it): => CNAME ( => => custom worker domain => worker

I believe you need to have the domain added to your worker in order for it to be served. So here you would need to add to your worker.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.