diff --git a/client/gatsby-browser.js b/client/gatsby-browser.js index 96f824f533c..6b6a26033f8 100644 --- a/client/gatsby-browser.js +++ b/client/gatsby-browser.js @@ -33,6 +33,8 @@ export const wrapPageElement = layoutSelector; export const disableCorePrefetching = () => true; export const onClientEntry = () => { - // the token must be erased since it is only valid for the old _csrf secret + // Letting the users' browsers expire the cookie seems to have caused issues + // for some users. Until we have time to investigate further, we should remove + // the cookie on every page load. cookies.erase('csrf_token'); };