Skip to content

Commit 7de917e

Browse files
author
Luca Forstner
authored
fix(browser): Set anonymous crossorigin attribute on report dialog (#8424)
1 parent 087819c commit 7de917e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/browser/src/sdk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ export function showReportDialog(options: ReportDialogOptions = {}, hub: Hub = g
164164

165165
const script = WINDOW.document.createElement('script');
166166
script.async = true;
167+
script.crossOrigin = 'anonymous';
167168
script.src = getReportDialogEndpoint(dsn, options);
168169

169170
if (options.onLoad) {

0 commit comments

Comments
 (0)