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'),
|
||||
} = 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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user