Provide credentials (cookies) when loading Javascript modules (#6328)

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Rohan Kapoor 2020-07-05 13:35:26 -07:00 committed by GitHub
parent 3e84486dd5
commit d11736181f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,8 @@ 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 = "use-credentials";
}
break;
case "link":