Skip to content

Commit

Permalink
tried to fix cookie problem on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed May 24, 2023
1 parent 6dc8968 commit 249cb56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/clients/masa-client.ts
Expand Up @@ -388,6 +388,7 @@ export class MasaClient extends MasaBase {

const postResponse = await this._middlewareClient
.post<Payload, AxiosResponse<Result>>(endpoint, data, {
withCredentials: true,
headers: {
cookie: this.cookie ? [this.cookie] : undefined,
},
Expand Down Expand Up @@ -423,6 +424,7 @@ export class MasaClient extends MasaBase {

const patchResponse = await this._middlewareClient
.patch<Payload, AxiosResponse<Result>>(endpoint, data, {
withCredentials: true,
headers: {
cookie: this.cookie ? [this.cookie] : undefined,
},
Expand Down Expand Up @@ -457,6 +459,7 @@ export class MasaClient extends MasaBase {

const getResponse = await this._middlewareClient
.get<Result>(endpoint, {
withCredentials: true,
headers: {
cookie: this.cookie ? [this.cookie] : undefined,
},
Expand Down

0 comments on commit 249cb56

Please sign in to comment.