Fix for CSRF Token issue

This commit is contained in:
Stuart Taylor
2016-10-27 23:10:24 +01:00
parent 19b7fe18f2
commit 9e727ee0c1

View File

@ -29,7 +29,7 @@ import {
const isDev = Rx.config.longStackSupport = debug.enabled('fcc:*'); const isDev = Rx.config.longStackSupport = debug.enabled('fcc:*');
const log = debug('fcc:client'); const log = debug('fcc:client');
const hotReloadTimeout = 2000; const hotReloadTimeout = 2000;
const { csrf: { csrfToken } = {} } = window.__fcc__; const { csrf: { token: csrfToken } = {} } = window.__fcc__;
const DOMContainer = document.getElementById('fcc'); const DOMContainer = document.getElementById('fcc');
const initialState = isColdStored() ? const initialState = isColdStored() ?
getColdStorage() : getColdStorage() :