diff --git a/packages/checkout/sdk/src/widgets/load.test.ts b/packages/checkout/sdk/src/widgets/load.test.ts index 57eb2b8906..da7e70ad4e 100644 --- a/packages/checkout/sdk/src/widgets/load.test.ts +++ b/packages/checkout/sdk/src/widgets/load.test.ts @@ -25,6 +25,7 @@ describe('load', () => { expect(document.head.innerHTML).toBe( '`, diff --git a/packages/checkout/sdk/src/widgets/load.ts b/packages/checkout/sdk/src/widgets/load.ts index c77d5fce08..b008dad878 100644 --- a/packages/checkout/sdk/src/widgets/load.ts +++ b/packages/checkout/sdk/src/widgets/load.ts @@ -21,6 +21,7 @@ export async function loadUnresolvedBundle( if (!useLocalBundle()) { const integrityHash = await generateSHA512Hash(cdnUrl); tag.setAttribute('integrity', integrityHash); + tag.setAttribute('crossorigin', 'anonymous'); } tag.setAttribute('id', scriptId);