Skip to content

Commit 77121ee

Browse files
committed
getBalances: Include credentials after redirects
We "trust" this endpoint to redirect to the right place, so we need this because CORS policy is not correct, it seems. Signed-off-by: Kristofer Rye <[email protected]>
1 parent 5a01933 commit 77121ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/lib/financials/balances.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export async function getBalances(): Promise<BalancesOrErrorType> {
2121
let loginResponse = await fetch(OLECARD_AUTH_URL, {
2222
method: 'POST',
2323
body: form,
24+
credentials: 'include',
2425
})
2526

2627
if (loginResponse.url.includes('message=')) {

0 commit comments

Comments
 (0)