From 12931757441b931fba2020158c203e347fd3dc1a Mon Sep 17 00:00:00 2001 From: Joel Spadin Date: Wed, 30 Mar 2022 00:47:27 -0500 Subject: [PATCH] fix(docs): Allow CORS for hardware-metadata.json Enabled CORS so external tools can fetch the metadata file. --- docs/netlify.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/netlify.toml b/docs/netlify.toml index 9b0fd727..87462006 100644 --- a/docs/netlify.toml +++ b/docs/netlify.toml @@ -14,4 +14,9 @@ [[redirects]] from = "https://www.zmkfirmware.dev/*" to = "https://www.zmk.dev/:splat" - force = true \ No newline at end of file + force = true + +[[headers]] + for = "/hardware-metadata.json" + [headers.values] + Access-Control-Allow-Origin = "*" \ No newline at end of file