diff --git a/apps/api/src/app.ts b/apps/api/src/app.ts index 24dce1668..38914442e 100644 --- a/apps/api/src/app.ts +++ b/apps/api/src/app.ts @@ -33,7 +33,8 @@ const appHono = new Hono(); appHono.use( "/*", cors({ - origin: env.CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"] + origin: env.CORS_WEBSITE_URLS?.split(",") || ["http://localhost:3000", "http://localhost:3001"], + credentials: true }) ); diff --git a/packages/http-sdk/src/managed-wallet-http/managed-wallet-http.service.ts b/packages/http-sdk/src/managed-wallet-http/managed-wallet-http.service.ts index fb566a688..b267b41cb 100644 --- a/packages/http-sdk/src/managed-wallet-http/managed-wallet-http.service.ts +++ b/packages/http-sdk/src/managed-wallet-http/managed-wallet-http.service.ts @@ -10,7 +10,7 @@ export interface ApiWalletOutput { export class ManagedWalletHttpService extends ApiHttpService { async createWallet(userId: string) { - return this.addWalletEssentials(this.extractApiData(await this.post("v1/start-trial", { data: { userId } }))); + return this.addWalletEssentials(this.extractApiData(await this.post("v1/start-trial", { data: { userId } }, { withCredentials: true }))); } async getWallet(userId: string) {