Skip to content

Commit 1845bf4

Browse files
authored
fix(core): Pass origin as referrer for lazyLoadIntegration (#12766)
In our case the referrer is not passed to the feedback script and thus results in a 403 (because we set allowed domains in our project settings). Consequently also the modal doesn't open and it's a bit disappointing for us since we would like to use the feature.
1 parent 0951036 commit 1845bf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/browser/src/utils/lazyLoadIntegration.ts

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export async function lazyLoadIntegration(name: keyof typeof LazyLoadableIntegra
5151
const script = WINDOW.document.createElement('script');
5252
script.src = url;
5353
script.crossOrigin = 'anonymous';
54+
script.referrerPolicy = 'origin';
5455

5556
const waitForLoad = new Promise<void>((resolve, reject) => {
5657
script.addEventListener('load', () => resolve());

0 commit comments

Comments
 (0)