Skip to content

Commit

Permalink
Restore withCredentials for session cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
mwithi committed Dec 22, 2023
1 parent f3e61a1 commit dcc7682
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/generated/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export class BaseAPI {
headers,
body: body instanceof FormData ? body : JSON.stringify(body),
responseType: responseType ?? "json",
withCredentials: true,
};
};

Expand Down Expand Up @@ -200,6 +201,7 @@ export interface RequestOpts extends AjaxRequest {
headers?: HttpHeaders;
body?: HttpBody;
responseType?: "json" | "blob" | "arraybuffer" | "text";
withCredentials?: boolean;
}

export interface ResponseOpts {
Expand Down

0 comments on commit dcc7682

Please sign in to comment.