We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
crossorigin
1 parent bab628a commit 935d074Copy full SHA for 935d074
src/utils/importScript.ts
@@ -2,6 +2,7 @@ export function importScript(url: string, name: string) {
2
return new Promise((resolve, reject) => {
3
const script = document.createElement('script');
4
script.async = true;
5
+ script.crossOrigin = 'anonymous';
6
7
const destroy = () => {
8
if (script.parentNode) {
0 commit comments