From f3c51bac44853d2ef4100f0675a31808c8bd8637 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Tue, 22 Oct 2024 13:05:34 +0100 Subject: [PATCH] Set CORS headers for dummy APIs (#1108) Currently trying to fetch them fails due to CORS. --- org-cyf-itp/netlify.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org-cyf-itp/netlify.toml b/org-cyf-itp/netlify.toml index 8f8f8a1f7..2f284d11b 100644 --- a/org-cyf-itp/netlify.toml +++ b/org-cyf-itp/netlify.toml @@ -12,3 +12,8 @@ to = "/.netlify/functions/:splat" status = 200 [functions] external_node_modules = ["node-fetch"] + +[[headers]] + for = "/dummy-apis/*" + [headers.values] + Access-Control-Allow-Origin = "*"