Remove credentials for load module (#6746)

Fixes #6745
This commit is contained in:
Paulus Schoutsen 2020-08-30 16:42:02 +02:00 committed by GitHub
parent 41195dcef0
commit 4070380ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,9 +22,6 @@ const _load = (
(element as HTMLScriptElement).async = true;
if (type) {
(element as HTMLScriptElement).type = type;
// https://github.com/home-assistant/frontend/pull/6328
(element as HTMLScriptElement).crossOrigin =
url.substr(0, 1) === "/" ? "use-credentials" : "anonymous";
}
break;
case "link":