Fix invalid csrf token
This commit is contained in:
parent
b9383d59df
commit
f59b58f833
@ -33,7 +33,9 @@ export class ClientRenderer<A extends Action, D extends IAPIDef>
|
|||||||
target = document.getElementById('container'),
|
target = document.getElementById('container'),
|
||||||
} = this.params
|
} = 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({
|
const history = createBrowserHistory({
|
||||||
basename: config.baseUrl,
|
basename: config.baseUrl,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user