Workers and Pages do not work together

I followed this guide:

But have yet to manage to get it work. All the requests to workers end up being handled by Cloudflare Pages. For example:

My page is:
subdomain.example.com
My API endpoint is:
subdomain.example.com/api/*

When I removed the CNAME record used by subdomain.example.com that points to Cloudflare pages, the worker worked. But Cloudflare pages obviously did not work afterwards.

I followed this guide:

But have yet to manage to get it work. All the requests to workers end up being handled by Cloudflare Pages. For example:

My page is:
http://subdomain.example.com/

My API endpoint is:
http://subdomain.example.com/api/*

When I removed the CNAME record used by subdomain.example.com that points to Cloudflare pages, the worker worked. But Cloudflare pages obviously did not work afterwards.

Hi @doan.chuvan,

that is unfortunately a known bug with Pages and the Cloudflare Proxy. It’s being worked on, but the team doesn’t have an exact ETA at this time due to some intra-teams dependencies for the fix.