diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b5299ff4..4ae55c1fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.172.1 - 2024-10-17 + +- chore: add crossOrigin='anonymous' to snippet script (#1481) + ## 1.172.0 - 2024-10-17 - chore: build an es5 bundle and move main to es6 (#1480) diff --git a/package.json b/package.json index d5ba60340..84852d94a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "posthog-js", - "version": "1.172.0", + "version": "1.172.1", "description": "Posthog-js allows you to automatically capture usage and send events to PostHog.", "repository": "https://github.com/PostHog/posthog-js", "author": "hey@posthog.com", diff --git a/playground/cypress-full/index.html b/playground/cypress-full/index.html index a55faa495..6e06796a5 100644 --- a/playground/cypress-full/index.html +++ b/playground/cypress-full/index.html @@ -47,7 +47,7 @@
diff --git a/playground/cypress/index.html b/playground/cypress/index.html index eb6604037..9ae94c58f 100644 --- a/playground/cypress/index.html +++ b/playground/cypress/index.html @@ -57,7 +57,7 @@ diff --git a/playground/segment/segment.html b/playground/segment/segment.html index 226bdfc58..f060d6720 100644 --- a/playground/segment/segment.html +++ b/playground/segment/segment.html @@ -5,7 +5,7 @@ diff --git a/src/entrypoints/external-scripts-loader.ts b/src/entrypoints/external-scripts-loader.ts index 7748292d2..0a612f267 100644 --- a/src/entrypoints/external-scripts-loader.ts +++ b/src/entrypoints/external-scripts-loader.ts @@ -14,6 +14,7 @@ const loadScript = (posthog: PostHog, url: string, callback: (error?: string | E } const scriptTag = document.createElement('script') scriptTag.type = 'text/javascript' + scriptTag.crossOrigin = 'anonymous' scriptTag.src = url scriptTag.onload = (event) => callback(undefined, event) scriptTag.onerror = (error) => callback(error)