Skip to content

Commit

Permalink
fix(browser): Set anonymous crossorigin attribute on report dialog (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst committed Jun 29, 2023
1 parent 087819c commit 7de917e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/browser/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export function showReportDialog(options: ReportDialogOptions = {}, hub: Hub = g

const script = WINDOW.document.createElement('script');
script.async = true;
script.crossOrigin = 'anonymous';
script.src = getReportDialogEndpoint(dsn, options);

if (options.onLoad) {
Expand Down

0 comments on commit 7de917e

Please sign in to comment.