Cloudflare is dropping my cookie

I’m having an issue that when I make a certain call directly to my origin server, I get back a certain cookie. But when I make the same call through Cloudflare, the cookie is missing. The request is the same in both cases, and it always works the same way.

The only peculiarity of this request is that it gets made by a javascript snippet embedded in the page. We use it to detect bots (since bots usually have javascript disabled).

We were able to fix this by adding a page rule to make that one item a pass-through.

Does this work on free accounts?

Hi @bob.walsh, yes, free accounts have 3 free Page Rules and can purchase more if needed, https://support.cloudflare.com/hc/en-us/articles/225894428-How-To-Buy-Additional-Page-Rules

To add some more context, since it came up in another ticket:

The Page Rule to use in this case would be to set “Cache Level” to “Bypass” for the URL you are seeing problems with.
More information can also be found here:

2 Likes

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