Skip to content

Commit a914c9a

Browse files
committed
Check for Cloudflare under attack mode param
1 parent 65a6c3a commit a914c9a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/default.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,10 @@
838838

839839
/** if uniques **/
840840
// We set unique variable based on pushstate or back navigation, if no match we check the referrer
841-
page.unique = isPushState || userNavigated ? falseVar : !sameSite;
841+
page.unique =
842+
/__cf_chl_tk/i.test(getReferrer()) || isPushState || userNavigated
843+
? falseVar
844+
: !sameSite;
842845
/** endif **/
843846

844847
/** if metadata **/

0 commit comments

Comments
 (0)