Browse Source

fix(docs): Allow CORS for hardware-metadata.json

Enabled CORS so external tools can fetch the metadata file.
xmkb
Joel Spadin 2 years ago committed by Pete Johanson
parent
commit
1293175744
  1. 7
      docs/netlify.toml

7
docs/netlify.toml

@ -14,4 +14,9 @@ @@ -14,4 +14,9 @@
[[redirects]]
from = "https://www.zmkfirmware.dev/*"
to = "https://www.zmk.dev/:splat"
force = true
force = true
[[headers]]
for = "/hardware-metadata.json"
[headers.values]
Access-Control-Allow-Origin = "*"
Loading…
Cancel
Save