Cloudflare is stripping Cookies header from multi-level subdomain requests

You can test with the following URL by simply adding cookies in the devtools.

https://65212ff5b5d8f33e0b97.functions.api.vegas/

I’m returning the complete request context, headers.cookies is completely missing. On the top TLD I have no issues.

I tried development mode, cache bypass rules, everything I could think of.

If you are still facing this you could try to reduce the subdomain levels (making it first or second level) and test it again.

I can’t, I’m using Appwrite, it’s how cloud functions work in it.