Skip to content

Commit

Permalink
fix(core): Pass origin as referrer for lazyLoadIntegration (#12766)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jaulz authored Jul 5, 2024
1 parent 0951036 commit 1845bf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/browser/src/utils/lazyLoadIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export async function lazyLoadIntegration(name: keyof typeof LazyLoadableIntegra
const script = WINDOW.document.createElement('script');
script.src = url;
script.crossOrigin = 'anonymous';
script.referrerPolicy = 'origin';

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

0 comments on commit 1845bf4

Please sign in to comment.