@decocms/apps 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vtex/client.ts +2 -1
package/package.json
CHANGED
package/vtex/client.ts
CHANGED
|
@@ -259,7 +259,8 @@ export async function vtexFetchWithCookies<T>(path: string, init?: RequestInit):
|
|
|
259
259
|
const setCookies =
|
|
260
260
|
typeof response.headers.getSetCookie === "function" ? response.headers.getSetCookie() : [];
|
|
261
261
|
for (const cookie of setCookies) {
|
|
262
|
-
|
|
262
|
+
const stripped = cookie.replace(/;\s*domain=[^;]*/gi, "");
|
|
263
|
+
responseHeaders.append("set-cookie", stripped);
|
|
263
264
|
}
|
|
264
265
|
}
|
|
265
266
|
|