@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/vtex/client.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/apps",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "type": "module",
5
5
  "description": "Deco commerce apps for TanStack Start - Shopify, VTEX, commerce types, analytics utils",
6
6
  "exports": {
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
- responseHeaders.append("set-cookie", cookie);
262
+ const stripped = cookie.replace(/;\s*domain=[^;]*/gi, "");
263
+ responseHeaders.append("set-cookie", stripped);
263
264
  }
264
265
  }
265
266