@elevateab/sdk 1.4.0 → 1.4.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/README.md +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ import { Analytics, useNonce } from "@shopify/hydrogen";
|
|
|
27
27
|
|
|
28
28
|
export default function Root() {
|
|
29
29
|
const data = useLoaderData<typeof loader>();
|
|
30
|
-
const nonce = useNonce(); //
|
|
30
|
+
const nonce = useNonce(); // Only needed if your store uses strict CSP
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
<Analytics.Provider
|
|
@@ -55,6 +55,9 @@ The `preventFlickering={true}` prop prevents content flash while tests load.
|
|
|
55
55
|
|
|
56
56
|
### Content Security Policy Configuration
|
|
57
57
|
|
|
58
|
+
This step is optional. Only add CSP directives if your store enforces a strict CSP
|
|
59
|
+
and you see console errors about blocked scripts.
|
|
60
|
+
|
|
58
61
|
**For Hydrogen stores:** Add Elevate CDN domains to your CSP in `app/entry.server.tsx`:
|
|
59
62
|
|
|
60
63
|
```tsx
|