Skip to content

Commit

Permalink
Add CORS response headers (home-assistant#4652)
Browse files Browse the repository at this point in the history
  • Loading branch information
steverep authored and tsunglung committed Sep 22, 2023
1 parent 473198a commit 0fcccc5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@
for = "/_/_placeholder/*.png"
[headers.values]
Cache-Control = "public, max-age: 900, s-maxage=3600, must-revalidate"
Access-Control-Allow-Origin = "*"

[[headers]]
for = "/*.png"
[headers.values]
Cache-Control = "public, max-age: 900, s-maxage=604800, must-revalidate"
Access-Control-Allow-Origin = "*"

[[headers]]
for = "/domains.json"
[headers.values]
Cache-Control = "public, max-age: 900, s-maxage=604800, must-revalidate"
Access-Control-Allow-Origin = "*"

[[redirects]]
from = "/"
Expand Down

0 comments on commit 0fcccc5

Please sign in to comment.