chore(hass): hacsfiles CORS

This commit is contained in:
arcnmx 2024-08-17 11:41:46 -07:00
parent a6c675c0f8
commit 28998dad84
2 changed files with 21 additions and 0 deletions

View file

@ -157,6 +157,7 @@ in {
trusted_proxies = mkIf cfg.reverseProxy.enable cfg.reverseProxy.trustedAddresses;
cors_allowed_origins = [
(mkIf cfg.googleAssistant.enable "https://google.com")
(mkIf cfg.cast.enable "https://cast.home-assistant.io")
(mkIf (cfg.localDomain != null) "https://${cfg.localDomain}")
# TODO: (mkIf (cfg.reverseProxy.enable && cfg.reverseProxy.auth.enable) vouch cors idk)
"https://www.home-assistant.io"