diff --git a/www/apps/docs/content/modules/products/storefront/show-products.mdx b/www/apps/docs/content/modules/products/storefront/show-products.mdx index ac779a8d0c..452bbaafe3 100644 --- a/www/apps/docs/content/modules/products/storefront/show-products.mdx +++ b/www/apps/docs/content/modules/products/storefront/show-products.mdx @@ -606,9 +606,15 @@ medusa.products.search({ ```ts -fetch(`/store/products/search?q=Shirt`, { +fetch(`/store/products/search`, { credentials: "include", method: "POST", + headers: { + "Content-Type": "application/json", + }, + body: JSON.stringify({ + q: "Shirt" + }) }) .then((response) => response.json()) .then(({ hits }) => { @@ -620,7 +626,11 @@ fetch(`/store/products/search?q=Shirt`, { ```bash -curl -L -X POST '/store/products/search?q=Shirt' +curl -L -X POST '/store/products/search?q=Shirt' \ +-H 'Content-Type: application/json' \ +--data-raw '{ + "q": "Shirt" +}' ```