šØ Help: Worker causing JS Challenge loop, (UPDATE: trying a workaround)
Problem:
Worker triggers endless JS challenges on product pages, even without query params.
Goal:
Set tracking cookies for UTM parameters (ttclid, gclid, etc.)
Tried:
ā
Bypassing /cdn-cgi/,
ā
200-only intercepts,
ā
Client-side cookies,
ā Still loops
Current Worker Code:
Question:
How can I set tracking cookies without interfering with CF's security challenges? Is there a specific pattern Workers should follow to avoid challenge loops on product pages?
Any help is appreciated āØ
2 Replies
I don't, but at least i figured out where the error is happening , the infinite js challenge loop is happening because there's a new Response() and not because of the set-cookie . only problem is, request headers are immutable :\
update, i tried it with cloudflare snippets and it seems that its working !, it innjected the cookie
