From b35a32ab82a1ec1a86de0b837eeba712f23ecad0 Mon Sep 17 00:00:00 2001 From: Michael Zetterberg Date: Tue, 26 Mar 2024 13:58:25 +0100 Subject: [PATCH] fix: allow CORS for Contentstack and its subdomains --- netlify.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index ff1c050..593d751 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,4 +1,12 @@ +[[headers]] + for = "/*" + + [headers.values] + Access-Control-Allow-Origin = "https://*.contentstack.com" + Access-Control-Allow-Methods = "GET, HEAD" + Access-Control-Allow-Headers = "*" + [[redirects]] from = "/*" to = "/index.html" - status = 200 \ No newline at end of file + status = 200