mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-24 20:00:39 -04:00
* fix: fetch csrf cookie and set headers lazily * fix: check cookie each call to keep it up to date Previously the cookie was checked once and never updated until the client was reloaded. Stale or absent cookies would generate incorrect tokens or no tokens, respectively, causing CSRF errors.