1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 04:50:06 +00:00

fix(session): fixed polling session state

This commit is contained in:
Yury Shkoda
2021-06-30 16:55:09 +03:00
parent a164fb7df9
commit ac6cd7be82
2 changed files with 12 additions and 15 deletions

View File

@@ -63,6 +63,9 @@ export class RequestClient implements HttpClient {
baseURL: baseUrl
})
}
this.httpClient.defaults.validateStatus = (status) =>
status >= 200 && status < 305
}
public getCsrfToken(type: 'general' | 'file' = 'general') {