chore: rollback CSRF token generation (#42082)

This reverts commit e1c00138a9.
This commit is contained in:
Mrugesh Mohapatra
2021-05-11 00:27:08 +05:30
committed by GitHub
parent 94d4b2f553
commit 83943de719
9 changed files with 49 additions and 52 deletions

View File

@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { I18nextProvider } from 'react-i18next';
import cookies from 'browser-cookies';
import i18n from './i18n/config';
import { createStore } from './src/redux/createStore';
@ -28,9 +27,3 @@ wrapRootElement.propTypes = {
export const wrapPageElement = layoutSelector;
export const disableCorePrefetching = () => true;
export const onClientEntry = () => {
// purge the _csrf cookie, rather than relying what the browser decides a
// Session duration is
cookies.erase('_csrf');
};