Skip to content

Commit

Permalink
Skip cache on CSRF token
Browse files Browse the repository at this point in the history
  • Loading branch information
RealOrangeOne authored Jul 29, 2024
1 parent 97aca3e commit 5867f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudflare/workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// applied after this worker runs.

// When any cookie in this list is present in the request, cache will be skipped
const PRIVATE_COOKIES = ['sessionid'];
const PRIVATE_COOKIES = ['sessionid', 'csrftoken'];

// These querystring keys are stripped from the request as they are generally not
// needed by the origin.
Expand Down

0 comments on commit 5867f74

Please sign in to comment.