From f9ed8f2dc45936d4a651e158e48ac60e305b176a Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Sat, 22 Oct 2022 21:00:38 +0300 Subject: Allow for CORS by default on CF pages --- exampleSite/static/_headers | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 exampleSite/static/_headers (limited to 'exampleSite') diff --git a/exampleSite/static/_headers b/exampleSite/static/_headers new file mode 100644 index 0000000..c776a47 --- /dev/null +++ b/exampleSite/static/_headers @@ -0,0 +1,2 @@ +/* + Access-Control-Allow-Origin: * -- cgit v1.2.3-70-g09d2 From b938549fce11cfe897b99bb151fd805e71d433fe Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Sat, 22 Oct 2022 21:05:22 +0300 Subject: Less restrictive cors headers by default --- exampleSite/netlify.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exampleSite') diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml index e0bd82e..cc27ac3 100644 --- a/exampleSite/netlify.toml +++ b/exampleSite/netlify.toml @@ -17,6 +17,6 @@ command = "hugo -b $DEPLOY_PRIME_URL" [[headers]] - for = ["/*.json", "/*.xml"] + for = ["/*"] [headers.values] Access-Control-Allow-Origin = "*" -- cgit v1.2.3-70-g09d2