From c7a7341820770c0f9924c99e5720a0de16aeb0d1 Mon Sep 17 00:00:00 2001 From: Todd Baert Date: Sat, 9 Mar 2024 11:09:30 -0500 Subject: [PATCH] docs: relax CO headers for schemas (#1243) See title. This just allows frontend apps to pull schemas instead of getting blocked by the CO policy. EDIT: Tested in the netlify preview and works as expected. Only the `schemas` path is impacted, no CORS on rest of site. Signed-off-by: Todd Baert --- netlify.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/netlify.toml b/netlify.toml index d53b4732f..fe5e1f674 100644 --- a/netlify.toml +++ b/netlify.toml @@ -9,3 +9,9 @@ poetry install -v && mkdocs build """ + +[[headers]] + # Relax cross origin restrictions for schemas, so they can be requested by front-end apps. + for = "/schema/*" + [headers.values] + Access-Control-Allow-Origin = "*" \ No newline at end of file