We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efe4cad commit aa1c4d3Copy full SHA for aa1c4d3
src/utils/IConfig.ts
@@ -3,5 +3,5 @@ export interface IConfig {
3
environment: string;
4
version: string;
5
integrity?: string;
6
- crossorigin?: string;
+ crossorigin?: 'use-credentials' | 'anonymous' | '';
7
}
src/utils/loadScript.ts
@@ -33,7 +33,7 @@ const appendScript = (): HTMLScriptElement => {
33
script.integrity = integrity;
34
35
36
- if (crossorigin) {
+ if (typeof crossorigin === 'string') {
37
script.crossOrigin = crossorigin;
38
39
0 commit comments