include credentials
This commit is contained in:
@@ -25,6 +25,7 @@ export const retrieveOrder = async (id: string, allowCache = true) => {
|
|||||||
headers,
|
headers,
|
||||||
next,
|
next,
|
||||||
...(allowCache ? { cache: 'force-cache' } : {}),
|
...(allowCache ? { cache: 'force-cache' } : {}),
|
||||||
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
.then(({ order }) => order)
|
.then(({ order }) => order)
|
||||||
.catch((err) => medusaError(err));
|
.catch((err) => medusaError(err));
|
||||||
@@ -55,6 +56,7 @@ export const listOrders = async (
|
|||||||
},
|
},
|
||||||
headers,
|
headers,
|
||||||
next,
|
next,
|
||||||
|
credentials: 'include',
|
||||||
})
|
})
|
||||||
.then(({ orders }) => orders)
|
.then(({ orders }) => orders)
|
||||||
.catch((err) => medusaError(err));
|
.catch((err) => medusaError(err));
|
||||||
|
|||||||
Reference in New Issue
Block a user