Fix invalid csrf token

This commit is contained in:
Jerko Steiner 2019-05-19 17:55:40 +12:00
parent b9383d59df
commit f59b58f833

View File

@ -33,7 +33,9 @@ export class ClientRenderer<A extends Action, D extends IAPIDef>
target = document.getElementById('container'),
} = this.params
const http = new HTTPClient<D>(config.baseUrl + '/api')
const http = new HTTPClient<D>(config.baseUrl + '/api', {
'x-csrf-token': config.csrfToken,
})
const history = createBrowserHistory({
basename: config.baseUrl,