Browse Source

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

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

5
docs/netlify.toml

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