Skip to content

Commit 6f95e1e

Browse files
author
Ives van Hoorne
committed
Fix crossorigin error for React
1 parent f6334d9 commit 6f95e1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sandbox/npm/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function addDependencyBundle(url) {
2020
const script = document.createElement('script');
2121
script.setAttribute('src', `${url}/dll.js`);
2222
script.setAttribute('async', false);
23+
script.setAttribute('crossorigin', true);
2324
script.addEventListener('load', resolve);
2425

2526
document.head.appendChild(script);

0 commit comments

Comments
 (0)