Merge pull request #227 from multica-ai/fix/fetch-credentials-include
fix(api): add credentials include for cross-origin cookie storage
This commit is contained in:
commit
2c76a0b905
1 changed files with 2 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ export class ApiClient {
|
|||
const res = await fetch(`${this.baseUrl}${path}`, {
|
||||
...init,
|
||||
headers,
|
||||
credentials: "include",
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
|
|
@ -527,6 +528,7 @@ export class ApiClient {
|
|||
method: "POST",
|
||||
headers: this.authHeaders(),
|
||||
body: formData,
|
||||
credentials: "include",
|
||||
});
|
||||
|
||||
if (!res.ok) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue