Skip to content

Commit

Permalink
:electron: Fix gocardless "Linking account" integration (#3212)
Browse files Browse the repository at this point in the history
* fix gocardless call - forked process didnt know its origin

* add release notes

* mamma mia

* remove old change
  • Loading branch information
MikesGlitch authored Aug 7, 2024
1 parent 6532939 commit 6a85f84
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/loot-core/src/platform/server/fetch/index.electron.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
// @ts-strict-ignore
export { default as fetch } from 'node-fetch';
// // @ts-strict-ignore
import nodeFetch from 'node-fetch';

export const fetch = (input: RequestInfo | URL, options?: RequestInit) => {
return nodeFetch(input, {
...options,
headers: {
...options?.headers,
origin: 'app://actual',
},
});
};
6 changes: 6 additions & 0 deletions upcoming-release-notes/3212.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MikesGlitch]
---

Fix gocardless "Linking back account" integration in Desktop app.

0 comments on commit 6a85f84

Please sign in to comment.