diff --git a/app/entry.server.jsx b/app/entry.server.jsx index 4a4e0dea..f94d4cd4 100644 --- a/app/entry.server.jsx +++ b/app/entry.server.jsx @@ -38,6 +38,7 @@ export default async function handleRequest( responseHeaders.set('Content-Type', 'text/html'); responseHeaders.set('Content-Security-Policy', header); + responseHeaders.set('Access-Control-Allow-Origin', '22e5233b4cfb.ngrok.app'); return new Response(body, { headers: responseHeaders, diff --git a/app/routes/($locale)._index.jsx b/app/routes/($locale)._index.jsx index 9487e1bf..a0a9202a 100644 --- a/app/routes/($locale)._index.jsx +++ b/app/routes/($locale)._index.jsx @@ -34,7 +34,7 @@ export default function Homepage() { - + diff --git a/app/routes/($locale).products.$handle.jsx b/app/routes/($locale).products.$handle.jsx index 97f3121c..9d352b0b 100644 --- a/app/routes/($locale).products.$handle.jsx +++ b/app/routes/($locale).products.$handle.jsx @@ -9,6 +9,7 @@ import { CartForm, } from '@shopify/hydrogen'; import {getVariantUrl} from '~/lib/variants'; +import {NostoProduct, NostoPlacement} from "@nosto/shopify-hydrogen"; /** * @type {MetaFunction} @@ -101,6 +102,8 @@ export default function Product() { product={product} variants={variants} /> + + ); }